To setup the project please follow these guidelines
- Make sure that you have nodejs and npm installed in your system.
- Run command 'npm install' in the project root directory to install all the dependencies from the package.json file.
- Create a file .env in the project root directory and add these environments MONGO_URI, SECRET_OR_KEY, and PORT.
- Place the MongoDB connection string in the MONGO_URI. You can refer to https://mlab.com/ which i have used.
- SECRET_OR_KEY is the secret key for your password. Make sure this is strong enough to not get cracked easily.
- PORT is the port on which you want to run the server. If this is not provided then application will run on default port 5000.
- After setting up the .env file run 'npm run server' or 'npm start' in the root to run the nodemon server or normal server respectively.
- Refer to this Postman collection for testing the endpoints https://www.getpostman.com/collections/0f469aa721fd29567f04
Don't forget to Star and Fork the repository.
Have fun!