The project simulates features, purchases, and deliveries
- Using JWT for authentication
- Apply Clean Architecture for project (Learn more at 200lab.io/blog/ung-dung-clean-architecture-service-golang-rest-api)
- Gin
- GORM
Before you begin, you'll need to have Go installed on your computer. You can download Go from the official Go website.
- Clone the project from GitHub:
git clone https://github.com/tungdevpro/coffee_api.git
- Add .env file
PORT=3002
HASH_SALT=your_hash_salt
DB_CONNECTION_URL="your_db_url"
SECRET_KEY=your_secret_key
S3_BUCKET_NAME="your_bucket_name"
S3_REGION="ap-southeast-1"
S3_API_KEY="your_api_key"
s3_SECRET_KEY="your_s3_secret_key"
S3_DOMAIN="your_domain_s3"
- For Docker
docker compose up -d
- Run application by command:
go run cmd/main.go
- Postman (Optional) Download link API PostMan
-
Manage user tokens
-
Push notification to user (Send notifications to all devices where the user is logged in)
1: Success -1: Have a error -2: Not verified your account