This guide will help you get the Management API and Runner services set up and running on your local machine for development and testing purposes.
Ensure that you have Go 1.20 installed on your local machine. If you haven't, you can download it from the official Go website. Ensure you have Swag installed. Install instructions
The Management API and Runner services use make commands for building and running the application locally. Follow the steps below to start the services:
- Run Postgres database migrations:
make db/migrate
Run the db/migrate
command every time there are changes in the Postgres schema. This database is shared by both the Management API and Runner services.
- Build the Management API binary:
make build/api
- Run the Management API binary:
make run/api
- Build the Runner binary:
make build/runner
- Run the Runner binary:
make run/runner
The make `run/runner command starts the Runner service, which will begin to process jobs according to the schedule defined in the database.
There is a single make command for running all tests:
make test