You need to go to .env
file and add your connection string to your mongoDB database based on how it's explained in the course.
You can use the following url, but you need to get your username
, password
and dbname
which you created in your databse.
mongodb+srv://<username>:<password>@cluster0.x1ccn.mongodb.net/<dbname>?retryWrites=true&w=majority
npm install
npm start
GET /api/v1/products
GET /api/v1/products/:id
POST /api/v1/products
PUT /api/v1/products/:id
DELETE /api/v1/products/:id
PUT gallery-images : /api/v1/products/gallery-images/:id
GET featured products: /api/v1/products/get/featured/:count
GET products count: /api/v1/products/get/count
GET /api/v1/orders
GET /api/v1/orders/:id
POST /api/v1/orders
PUT /api/v1/orders/:id
DELETE /api/v1/orders/:id
GET orders count: /api/v1/orders/get/count
GET /api/v1/users
GET /api/v1/users/:id
POST /api/v1/users
PUT /api/v1/users/:id
DELETE /api/v1/users/:id
GET users count: /api/v1/users/get/count
POST /api/v1/users/register
To login the user and get the auth token you can use:
POST /api/v1/users/login
If you found this project useful, then please consider giving it a ⭐ on Github and sharing it with your friends via social media.
- Hey guys, I'm Jayvardhan. Find out more about me here
- Reach out to me at rathi406@gmail.com