To build and run the application:
make build run
or on windows:
.\setup.ps1 build run
This command will compile the backend application and execute it.
And to clean up all leftover binaries:
make clean
and on windows run:
.\setup.ps1 clean
To update the database run:
make migrate
On windows:
.\setup.ps1 migrate
And at last, to build into a docker container run:
make docker
On windows:
.\setup.ps1 docker
Note: You need to run the development container, or use a working postgresql database for this to work.
build
: Builds the backend applicationrun_dev
: Runs the built backend application in development moderun_prod
: Runs the built backend application in production modeclean
: Cleans up all leftover binariesdocker
: Builds the application into a docker container, and runs itmigrate
: Creates a migration, and updates the database with it
To run the database simply start the postgres:15
container defined in the docker-compose.yml
file, by running:
docker compose up -d
Note: This container should only be used for development purposes.