Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ritikprajapat21/ecommerce-backend
A backend ecommerce application made using node.js
https://github.com/ritikprajapat21/ecommerce-backend
Last synced: 13 days ago
JSON representation
A backend ecommerce application made using node.js
- Host: GitHub
- URL: https://github.com/ritikprajapat21/ecommerce-backend
- Owner: ritikprajapat21
- Created: 2024-08-26T11:54:10.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-08-26T13:41:43.000Z (4 months ago)
- Last Synced: 2024-08-26T16:05:59.561Z (4 months ago)
- Language: JavaScript
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Backend of e-commerce application
Created the backend of the e-commerce applicaiton.
Used token based authentication.Following are the end points:
User endpoint:
- **/signup**: To register yourself and can also assign role. By default role is **'customer'**.
- **/signin**: To generate the token used to access other endpoints.Product endpoint:
- **/product**: To get all the products.
- **/product/add**: To add a product.
- **/product/update/:productId**: To update a product.
- **/product/:productId**: To delete a product.Cart endpoint:
- **/cart**: To get products from the cart.
- **/cart/add**: To add a product to the cart.
- **/cart/update**: To update products present in the cart.
- **/cart/delete**: To delete product from the cart.Order endpoint:
- **/order**: To get all the orders. Only accessible by admin.
- **/order/customer/:customerId**: To get the orders of a customer. Only accessible by admin.
- **/order/add**: To add order.