This project is an E-commerce API that provides endpoints for managing products, carts, and users. It is built using Node.js, Express, Prisma for DB with Typescript.
- User authentication and authorization
- CRUD operations for products
- Cart management
- Clone the repository:
git clone https://github.com/coollad49/ecommerce_api_server.git
- Navigate to the project directory:
cd ecommerce_api_server
- Install dependencies:
pnpm install
- Build project:
pnpm build
- Start the server:
pnpm start
- Access the API at
http://localhost:3000
- Docs at
http://localhost:3000/docs
POST /auth/register
- Register a new userPOST /auth/login
- User loginGET /products
- Get all productsPOST /products
- Add a new productPUT /products/:id
- Update a productDELETE /products/:id
- Delete a product
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License.