This is the basic template of Backend Server using NodeJS and Express connected with MongoDB.
- Clone the Repository using
git clone git@github.com:kazukilapislazuli/backend_server_template.git
. - In your local system, open terminal at that location and run
npm i
. - Add .env file inside the folder along with other files using below structure.
PORT=5000 MONGO_URI=<Your MongoDB URI> JWT_SECRET=<SecretString you want to have> JWT_EXPIRES_IN=7d JWT_COOKIE_EXPIRE=7d
- Run
npm start
- You are ready to use this now. Just add APIs alike the User folder inside API folder and connect route at server.js .
- Hit Star 😍 if you find this useful.
- Make relevant changes in the Dockerfile
- Run Command to build the image
docker build -t <image_name>:<tag_name> /path_to_dockerfile
- Made with ♥ for Community to fasten development process.