This project is a practice project to learn Go Lang and other backend tools. It has the ability to connect to AWS EKS and ECR and then uses Kubernetes to deploy the app.
- Go 1.16
- Docker
- migrate CLI (Install using
brew install golang-migrate/migrate)
To get the Go Simple Bank App running locally:
-
Clone this repository
-
Create a PostgreSQL instance using Docker
make postgres
-
Create database in PostgreSQL
make createdb
-
Run the Go Simple Bank App server
make server
docker compose up- Create User:
POST /users - Login User:
POST /users/login - Renew Access Token:
POST /tokens/renew_access
- Create Account:
POST /accounts - Get Account:
GET /accounts/:id - List Accounts:
GET /accounts - Update Account:
PUT /accounts/:id - Delete Account:
DELETE /accounts/:id
- Create Transfer:
POST /transfers
The application configuration is managed via the util.Config struct. Ensure you have the necessary environment variables set up for the configuration.
To run the tests for this project, use the following command:
make test