Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tegarpratama/checkout-service
https://github.com/tegarpratama/checkout-service
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tegarpratama/checkout-service
- Owner: tegarpratama
- Created: 2024-10-30T13:06:37.000Z (2 months ago)
- Default Branch: master
- Last Pushed: 2024-11-01T07:04:35.000Z (2 months ago)
- Last Synced: 2024-11-01T08:17:32.962Z (2 months ago)
- Language: Go
- Size: 23.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Project Installation
1. Clone the project
`git clone https://github.com/tegarpratama/checkout-service`2. Running docker compose
`docker-compose up --build -d`3. Migrate & seed data
1. `docker exec -it ifortepay-checkout-service-app bash`
2. `make migrate-up`
3. `go run scripts/seeder/main.go `# API Endpoints
- GET: `http://localhost:8080/api/check-health` - Check health system.
- POST: `http://localhost:8080/api/users` - Register a new user.
payload:
```
{
"email": "[email protected]",
"password": "password"
}
```
- POST: `http://localhost:8080/api/transactions/checkouts` - Checkout products.
payload:
```
{
"user_id": 1,
"product_sku": ["43N23P", "234234"]
}
```