An API that contains:
- register,login, logout functionality. (using Json Web Token and cookies)
- admin role and restriction functions for normal users
- CRUD functions and special routes for User, Product, Review, and Order models.
- documentation created with docgen
- security with "helmet", "express-rate-limiter", "xss-clean", "cors", and "express-mongo-sanitize".
- Setup .env in the root
- Add MONGO_URL with correct value
- Add JWT_SECRET as your resolving key(e.g thisIsASecretKey) and JWT_LIFETIME as the expire time of the token (e.g 1d,30d)
- navigate to the root directory (which contains "package.json"), and run the command below
npm install && npm start