Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 5 hours 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.

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.

## 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.