An application built using the Express
+ TypeScript
+ Mongoose
.
Generate private.pem and public.pem keys for JSON Web Token (JWT) and use the RS256 algorithm for encryption.
# Generate private key (private.pem):
openssl genpkey -algorithm RSA -out private.pem -aes256
# Extract public key from private key (public.pem)
openssl rsa -pubout -in private.pem -out public.pem
yarn start
yarn build
docker pull mongo
docker run -d -p 27017:27017 -v /Users/jyoketsu/Documents/workspace/docker/mongo/db:/data/db --name mongodb mongo
https://mongoosejs.com/docs/guide.html