Skip to content

Building an application using the Express + TypeScript + Mongoose stack.

Notifications You must be signed in to change notification settings

jyoketsu/nodejs-mongoose-template

Repository files navigation

nodejs-mongoose-template

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

Start

yarn start

Build

yarn build

Install Mongo

docker pull mongo

docker run -d -p 27017:27017 -v /Users/jyoketsu/Documents/workspace/docker/mongo/db:/data/db --name mongodb mongo

Mongoose docs

https://mongoosejs.com/docs/guide.html

Swagger UI

http://localhost:8099/api-docs/

Swagger docs

https://swagger.io/docs/specification/about/

About

Building an application using the Express + TypeScript + Mongoose stack.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published