- Go version 1.21.0
- docker-compose (you may need to update docker-compose.yml for intel based computer)
- Pull the source code
- Start the databases:
docker compose up -d
- Create a Postgre test database. Use any database client to create a database name
test
and grant permission for the default userpostgres
on it.
CREATE DATABASE test;
GRANT ALL PRIVILEGES ON DATABASE test TO postgres;
- Start the API server, it should automatically provision the tables. From the repo’s root directory, type
go run api-server/app.go
- Start other workers to complete the full system, open other terminal tabs for these commands
go run worker-due-job-checker/app.go
go run worker-job-fixer/app.go
go run data-feed/app.go
I haven’t handled the Grafana database migration yet, so you need to head to the Grafana dashboard
at http://localhost:3000
according to the docker-compose file Grafana port.
- Setup Prometheus as the data source
- Play around with the metrics sent from the scheduling system