This is the basic template of Backend Server using NodeJS and Express connected with MongoDB.
- Clone the Repository using
git clone https://github.com/AkshaySharma008/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 API's alike the User folder inside API folder and connect route at server.js .
- Hit Star 😍 if you find this useful.
- Made with ♥ for Community to fasten development process.