This is the backend part of OBGS. The main technologies used here are:
- ent for entity management
- gqlgen for code generation
- viper and cobra for CLI commands
- atlas for managing Postgres migrations
- taskfile for running development scripts
To start working on this you will need:
- go
go install ariga.io/atlas/cmd/atlas@latest
go install github.com/go-task/task/v3/cmd/task@latest
- docker
Once that is set up you can use the docker-compose file to run Postgres and Minio locally:
docker-compose up -d
Run the Postgres migrations:
task atlas_apply
Optionally, you can seed the DB by running task seed
. You will need to have psql
installed locally if you want to do this.
After all that, simply run go run main.go server
to start listening for connections. You are good to go!