Remember run npm install
in project root and client folder
this project is for quick start a apollo(GraphQL) react frontend and GraphQL nodejs backend based on this tutorial video, many thanks to Traversy Media.
.
├── LICENSE
├── README.md
├── client // all frontend code
├── config // nodejs server config
├── middleware // encryption middleware
├── package-lock.json
├── package.json
├── schema.js // graphql schema file
└── server.js // express server entry
Simply add post data encryption between request and server middleware, replace default fetcher with axios in apollo-client.
Add decryption middleware before express-graphql for decrypting data to main graphql server.
encryption method includes RSA 1024 and AES 128 mode ECB pkcs7 padding