Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sharif-minhaz/next-bun-shop-backend
Hono - [炎] means flame🔥 in Japanese - is a small, simple, and ultrafast web framework for the Edges. To explore it's true power I have created an ecommerce order system api with neon based postgresql
https://github.com/sharif-minhaz/next-bun-shop-backend
bun honojs neon postgresql rest-api
Last synced: 27 days ago
JSON representation
Hono - [炎] means flame🔥 in Japanese - is a small, simple, and ultrafast web framework for the Edges. To explore it's true power I have created an ecommerce order system api with neon based postgresql
- Host: GitHub
- URL: https://github.com/sharif-minhaz/next-bun-shop-backend
- Owner: Sharif-Minhaz
- Created: 2024-06-13T17:24:27.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-10-20T09:02:40.000Z (3 months ago)
- Last Synced: 2024-10-25T10:36:38.564Z (3 months ago)
- Topics: bun, honojs, neon, postgresql, rest-api
- Language: TypeScript
- Homepage:
- Size: 76.2 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# API Routes information
To install dependencies:
```sh
bun install
```To run:
```sh
bun run dev
```open
```sh
http://localhost:3000
```## Authentication Routes
### Get All Users
- **Method**: `GET`
- **URL Path**: `/api/v1/auth`
- **Description**: Retrieves a list of all users.### User Login
- **Method**: `POST`
- **URL Path**: `/api/v1/auth/login`
- **Description**: Logs in a user.### User Registration
- **Method**: `POST`
- **URL Path**: `/api/v1/auth/registration`
- **Description**: Registers a new user.### User Logout
- **Method**: `POST`
- **URL Path**: `/api/v1/auth/logout`
- **Description**: Logs out the current user.## Order Routes
### Get All Orders
- **Method**: `GET`
- **URL Path**: `/api/v1/order`
- **Description**: Retrieves a list of all orders.### Add Order
- **Method**: `POST`
- **URL Path**: `/api/v1/order/add/:productId`
- **Description**: Adds a new order.### Cancel Order
- **Method**: `PATCH`
- **URL Path**: `/api/v1/order/cancel/:orderId`
- **Description**: Cancels an order.### Accept Order
- **Method**: `PATCH`
- **URL Path**: `/api/v1/order/accept/:orderId`
- **Description**: Accepts an order.### Get User Orders
- **Method**: `GET`
- **URL Path**: `/api/v1/order/:userId`
- **Description**: Retrieves orders for a specific user.### Delete Order
- **Method**: `DELETE`
- **URL Path**: `/api/v1/order/:orderId`
- **Description**: Deletes an order.## Product Routes
### Get All Products
- **Method**: `GET`
- **URL Path**: `/api/v1/product`
- **Description**: Retrieves a list of all products.### Get Single Product
- **Method**: `GET`
- **URL Path**: `/api/v1/product/:productId`
- **Description**: Retrieves details of a single product.### Add Product
- **Method**: `POST`
- **URL Path**: `/api/v1/product/add`
- **Description**: Adds a new product.### Update Product
- **Method**: `PATCH`
- **URL Path**: `/api/v1/product/update/:productId`
- **Description**: Updates details of a product.### Delete Product
- **Method**: `DELETE`
- **URL Path**: `/api/v1/product/:productId`
- **Description**: Deletes a product.