Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/felixojiambo/orderservice
This project is an e-commerce backend API built with Express and TypeScript. It manages shopping cart and order functionalities, including creating, updating, retrieving, and deleting cart items and orders. It includes middleware for authentication and request validation to ensure secure and accurate data handling.
https://github.com/felixojiambo/orderservice
Last synced: about 2 months ago
JSON representation
This project is an e-commerce backend API built with Express and TypeScript. It manages shopping cart and order functionalities, including creating, updating, retrieving, and deleting cart items and orders. It includes middleware for authentication and request validation to ensure secure and accurate data handling.
- Host: GitHub
- URL: https://github.com/felixojiambo/orderservice
- Owner: felixojiambo
- Created: 2024-06-11T13:51:38.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-11T14:00:44.000Z (7 months ago)
- Last Synced: 2024-06-12T16:58:24.129Z (7 months ago)
- Language: TypeScript
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# E-Commerce Backend API
This Express and TypeScript project manages shopping cart and order functionalities. It includes endpoints for creating, updating, retrieving, and deleting cart items and orders. Middleware handles authentication and request validation.
## Usage
### Endpoints
#### Cart
- **Create**: `/cart` (POST)
- **Get**: `/cart` (GET)
- **Update**: `/cart/:id` (PATCH)
- **Delete**: `/cart/:id` (DELETE)#### Order
- **Create**: `/order` (POST)
- **Get All**: `/order` (GET)
- **Get by ID**: `/order/:id` (GET)
- **Delete**: `/order/:id` (DELETE)## Error Handling
The API returns appropriate HTTP status codes and error messages for various error conditions.
## Dependencies
- **express**: Web framework for Node.js.
- **typescript**: TypeScript language.
- **jwt**: Authentication.
- **class-validator**: Request validation.