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.
- 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.
Click to expand
1. Clone the repository and install the required dependencies:git clone https://github.com/zckyachmd/amerta-coffee-api.git
cd amerta-coffee-api
bun install
- Create a
.env
file in the root directory and add the following environment variables:
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
- Run the migrations:
bunx prisma migrate dev
- Start the server:
bun run dev
- Open your browser and navigate to
http://localhost:3000/ui
to access the API documentation.
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.
This project is licensed under the MIT License. See the LICENSE file for more information.