Bank API is a simple application that provides various banking functionalities. It uses PostgreSQL as the database backend.
This command builds the application and outputs an executable at bin/bank.exe
.
To build the application, run the following command:
task build
This command builds the application and runs it in a single step.
To build and run the application, use:
task run
This command runs the tests for the application to ensure everything is functioning as expected.
To run the tests, execute:
task test
Make sure you have the necessary dependencies installed:
- Go (Golang): Required for building and running the application.
- PostgreSQL: Required as the database backend.
Set up a PostgreSQL database with the necessary schema. You can configure the connection settings in the application configuration file.
- PostgreSQL: For the database.
- Go (Golang): For building and running the application.
To run the PostgreSQL database in Docker, you can use the provided docker-compose.yml
file. This will spin up a PostgreSQL container with the necessary configurations.
- Ensure you have Docker and Docker Compose installed.
- Run the following command to start the PostgreSQL container:
docker-compose up -d
- This will start PostgreSQL on
localhost:5432
with the following credentials:- Username:
admin
- Database:
bank
- Password:
password
- Username:
- If you encounter any issues while setting up or running the application, please open an issue or contact the maintainers.