Libraries used
- Configuration: https://github.com/spf13/viper
- HTTP Router: https://github.com/gorilla/mux
Run
- Start database via Docker
docker run --name buildit-db -e POSTGRES_PASSWORD=postgres -d -p 5432:5432 postgres
- Start service
go run main.go http -l debug
or via Docker see Docker
Database migrations will be performed at first execution.
Run tests
go test ./test/e2e
Docker
Build
docker build -t buildit:latest --build-arg SSH_PRIVATE_KEY="$(cat ~/.ssh/id_rsa)" .
Run
docker run -p 8080:8080 --network host buildit:latest