project as a learning tool to build a simple API with dokerizer and unit testing
- 1.5
- Deploy project in docker
$~ make deploy
- Integration test
$~ make integration-test
- Unit test
$~ make unit-test
- Remove project in docker
$~ make clean
$~ docker-compose up --build -d
- Setting database in .env file
- Using postgres database
- Run project in terminal
$~ go run main.go
- Url
localhost:8090/account
- Request body
{
"customer_name": "Siti Husna",
"balance": 10000
}
- url
localhost:8090/account
- url
localhost:8090/account/{{account_number}}
- url
localhost:8090/transfer
- Request header
account_number = {{account_number}}
- Request body
{
"to_account_number": "555002",
"amount": 100
}