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.

MIT License

Stars
2
Committers
1

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

git clone https://github.com/zckyachmd/amerta-coffee-api.git
cd amerta-coffee-api
bun install
  1. 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
  1. Run the migrations:
bunx prisma migrate dev
  1. Start the server:
bun run dev
  1. 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 file for more information.

Related Projects