- GET /api/notes/healthcheck - For Checking the Notes endpoints health
- POST /api/notes - To Create Note
- GET /api/notes - To List Created Notes
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, and PORT.
- Place the MongoDB connection string in the MONGO_URI. You can refer to https://mlab.com/ which i have used.
- 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/c41d6cbfa7f7f91f510d
Don't forget to Star and Fork the repository.
Have fun!