To develop this application locally you need PostgreSQL instance on your localhost. To achieve this you should
use docker/docker-compose.yml
file, for spinning up database instance locally.
- Docker installed locally
- That's all lol
You can do this by executing this command from your terminal.
IMPORTANT: You must be in root directory of this project - not in /docker!
docker compose -f docker/docker-compose.yml up -d database
To develop some other application that is using BoarDFI API, you need the whole stack running (database + boardfi-api) on your localhost.
- Docker installed locally
- Once again - that's all. I'm Top G - I know 💸
To spin up whole stack locally, use will need to follow these steps:
- Execute command for building the backend Docker image - details below.
- Create file
secrets.env
insidedocker/
directory - IMPORTANT: DO NOT COMMIT THIS FILE TO GIT REPOSITORY - Based on
secrets.env.exmaple
create the same environment variables but assign correct values (add missing API keys) - Execute command for starting up the whole stack - details below.
IMPORTANT: You must be in root directory of this project - not in /docker!
./gradlew bootBuildImage
docker compose -f docker/docker-compose.yml up -d
- PostgreSQL database is available on port
5432
- BoarDFI API is available on port
8080
Happy coding 🚀