Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/coollad49/ecommerce_api_server
a secure backend api with jwt for an ecommerce
https://github.com/coollad49/ecommerce_api_server
api ecommerce express jsonwebtoken openapi prisma swagger-ui typescript
Last synced: 27 days ago
JSON representation
a secure backend api with jwt for an ecommerce
- Host: GitHub
- URL: https://github.com/coollad49/ecommerce_api_server
- Owner: coollad49
- Created: 2024-09-14T23:22:17.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-10-28T09:22:48.000Z (2 months ago)
- Last Synced: 2024-10-28T12:58:47.872Z (2 months ago)
- Topics: api, ecommerce, express, jsonwebtoken, openapi, prisma, swagger-ui, typescript
- Language: TypeScript
- Homepage:
- Size: 175 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# E-commerce API Server
## Overview
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.## Features
- User authentication and authorization
- CRUD operations for products
- Cart management## Installation
1. Clone the repository:
```sh
git clone https://github.com/coollad49/ecommerce_api_server.git
```
2. Navigate to the project directory:
```sh
cd ecommerce_api_server
```
3. Install dependencies:
```sh
pnpm install
```
4. Build project:
```sh
pnpm build
```## Usage
1. Start the server:
```sh
pnpm start
```
2. Access the API at `http://localhost:3000`
3. Docs at `http://localhost:3000/docs`## Endpoints
- `POST /auth/register` - Register a new user
- `POST /auth/login` - User login
- `GET /products` - Get all products
- `POST /products` - Add a new product
- `PUT /products/:id` - Update a product
- `DELETE /products/:id` - Delete a product## Contributing
Contributions are welcome! Please open an issue or submit a pull request.## License
This project is licensed under the MIT License.