A simple RESTful API built in node.js framework ExpressJS, using this API you can create products and remove them as an admin. As a logged in user you can maintain your cart with products.
Dependencies that are used within the code :-
- Authentication is done using jsonwebtoken.
- Database is maintained by mongoose.
- Encryption is done using bcryptJS.
- Multer is used for image uploads.
- Morgan is used for logging request details.
- Body-Parser is used for extracting the body from an incoming request.
- Nodemon is used to simplify the work as it restarts the API automatically whenever code changes.
- Errors are handled accordingly.
Read nodemon.json for environment variables.
Log nodemon server.js to run the API.
Use POSTMAN for using the API.