- 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
testand grant permission for the default userpostgreson 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.gogo run worker-job-fixer/app.gogo run data-feed/app.goI 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