Skip to content

devRoot-workshop/devRoot-backend

Repository files navigation

Quick Start

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.

Available Targets

  • build: Builds the backend application
  • run_dev: Runs the built backend application in development mode
  • run_prod: Runs the built backend application in production mode
  • clean: Cleans up all leftover binaries
  • docker: Builds the application into a docker container, and runs it
  • migrate: Creates a migration, and updates the database with it

Running the development database

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •