Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zckyachmd/amerta-coffee-api
☕ A robust backend service powering the Amerta Coffee, online coffee store. Seamlessly managing all aspects of your coffee business with cutting-edge technology.
https://github.com/zckyachmd/amerta-coffee-api
api bunjs coffee-store honojs online-store open-api prisma-orm swagger-api typescript
Last synced: 4 months ago
JSON representation
☕ A robust backend service powering the Amerta Coffee, online coffee store. Seamlessly managing all aspects of your coffee business with cutting-edge technology.
- Host: GitHub
- URL: https://github.com/zckyachmd/amerta-coffee-api
- Owner: zckyachmd
- License: mit
- Created: 2024-09-15T11:41:39.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-09-24T01:09:02.000Z (5 months ago)
- Last Synced: 2024-09-27T12:40:26.457Z (4 months ago)
- Topics: api, bunjs, coffee-store, honojs, online-store, open-api, prisma-orm, swagger-api, typescript
- Language: TypeScript
- Homepage: https://amerta-api.zacky.id/
- Size: 55.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Amerta Coffee API
Welcome to **Amerta Coffee API**, the backend service for **Amerta Coffee**, your premium Indonesian coffee online store. This API handles all the server-side operations, including product management, user authentication, and order processing.
Entities Relational Diagram
## Features
- **User Authentication**: Endpoints for user registration, login, and retrieving user details.
- **Product Management**: Endpoints for managing coffee products, including adding, updating, and retrieving product details.
- **Order Processing**: Manage orders, including creating, updating, and retrieving order information.
- **Search and Filtering**: Search and filter products based on various criteria.
- **Admin Panel**: Administrative dashboard for managing users, products, and orders.## Installation
Click to expand
1. Clone the repository and install the required dependencies:```bash
git clone https://github.com/zckyachmd/amerta-coffee-api.git
cd amerta-coffee-api
bun install
```2. Create a `.env` file in the root directory and add the following environment variables:
```bash
DATABASE_URL=postgresql://user:password@localhost:5432/amerta-coffee
JWT_SECRET=your_jwt_secret
SALT_ROUNDS=10 # Adjust this value to your desired security level
```3. Run the migrations:
```bash
bunx prisma migrate dev
```4. Start the server:
```bash
bun run dev
```5. Open your browser and navigate to `http://localhost:3000/ui` to access the API documentation.
## Contributing
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE.md) file for more information.