Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abulfozoljumman/e-commerce-backend
https://github.com/abulfozoljumman/e-commerce-backend
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/abulfozoljumman/e-commerce-backend
- Owner: AbulFozolJumman
- Created: 2024-07-03T16:56:01.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-07-05T16:48:17.000Z (4 months ago)
- Last Synced: 2024-07-05T19:14:44.609Z (4 months ago)
- Language: TypeScript
- Homepage: https://e-commerce-backend-nu-three.vercel.app/
- Size: 166 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# E-Commerce-Backend
## Live Server Link: https://e-commerce-backend-nu-three.vercel.app
## Api endpoints:
1. Create a New Product
Endpoint: /api/products
Method: POST2. Retrieve a List of All Products
Endpoint: /api/products
Method: GET3. Retrieve a Specific Product by ID
Endpoint: /api/products/:productId
Method: GET4. Update Product Information
Endpoint: /api/products/:productId
Method: PUT5. Delete a Product
Endpoint: /api/products/:productId
Method: DELETE6. Search a product
Endpoint: /api/products?searchTerm=iphone
Method: GET7. Create a New Order
Endpoint: /api/orders
Method: POST8. Retrieve All Orders
Endpoint: /api/orders
Method: GET9. Retrieve Orders by User Email
Endpoint: /api/[email protected]
Method: GET## Instruction of how to run this application locally:
1. Clone the repository
2. Open the project in Code editor
3. Run the command "npm install"
4. Create a .env file and put PORT value and the MongoDB URL value as DB_URL
5. Run the command "npm run build"
6. Run the command "npm run start:dev"