An API for online store
- Authentication
- Products listing
- Order placements
- Node js
- Express Js
- MongoDB
- JWT
-
Login User :
localhost:5000/api/v1/auth/login -
Register User :
localhost:5000/api/v1/user/register -
Get Logged in User :
localhost:5000/api/v1/auth/me/ -
Update User Details :
localhost:5000/api/v1/auth/updateprofile -
Update Password :
localhost:5000/api/v1/auth/updatepassword -
Forgot Password :
localhost:5000/api/v1/auth/forgotpassword -
Reset Password :
localhost:5000/api/v1/auth/resetpassword/:resetToken -
Get All Products :
localhost:5000/api/v1/products -
Get Single Product :
localhost:5000/api/v1/products/:id -
Create Product :
localhost:5000/api/v1/products -
Update Product :
localhost:5000/api/v1/products/:id -
Delete Product :
localhost:5000/api/v1/products/:id -
Get User Cart :
localhost:5000/api/v1/cart -
Add To Cart :
localhost:5000/api/v1/cart -
Update User Cart :
localhost:5000/api/v1/cart/:id -
Delete Cart :
localhost:5000/api/v1/cart/:id -
Get All Users :
localhost:5000/api/v1/users -
Get Single User :
localhost:5000/api/v1/users/:id -
Create User :
localhost:5000/api/v1/users -
Update User :
localhost:5000/api/v1/users/:id -
Delete User :
localhost:5000/api/v1/users/:id -
Get All Orders :
localhost:5000/api/v1/orders -
Add Order :
localhost:5000/api/v1/orders -
Update Order :
localhost:5000/api/v1/orders -
Delete Order :
localhost:5000/api/v1/orders/:id
"/.env" update the values/settings to your own
npm install
# Run in dev mode
npm run server
- Version: 1.0.0
- License: MIT
- Author: Said Mounaim