README ¶ Bank API Instructions to Run Prod toDo Local Database: docker-compose up will start the PostgreSQL DB make migrateup will migrate the database structure go run main.go will start the api Routes base_url: http://localhost:3001 Accounts POST {{base_url}}/accounts/create - Create one account in the database { Name string `json:"name"` Cpf string `json:"cpf"` Secret string `json:"secret"` } GET {{base_url}}/accounts/{accountID} - Get one account by ID GET {{base_url}}/accounts/all - List all accounts Transfer GET {{base_url}}/transfers/{accountID} - List all transfer by account ID POST {{base_url}}/transferTo - Perform a transfer between two accounts (Login Required) (QueryParams: accountID_destination, amount) Auth POST {{base_url}}/accounts/login - Authenticate the account and returns JWT token { Cpf string `json:"cpf"` Secret string `json:"secret"` } Expand ▾ Collapse ▴ Directories ¶ Show internal Expand all Path Synopsis app domain/account domain/account/usecases domain/authenticate domain/authenticate/usecases domain/card domain/card/usecases domain/deck domain/deck/usecases domain/errors domain/owner domain/transfer domain/transfer/usecases domain/user domain/user/usecases gateways/account gateways/auth gateways/card gateways/decks gateways/http gateways/http/response gateways/transfer gateways/user infra/persistence/memory infra/persistence/postgres infra/utils cmd api Click to show internal directories. Click to hide internal directories.