Skip to content

Compile the API

Simone Margaritelli edited this page Feb 15, 2021 · 2 revisions

Requires go and make. The API needs to be hosted on an IP that the agents can reach.

cp api.example.yaml api.yaml

Edit both to your needs, the API requires a database that can be started with:

cp database.example.env database.env
docker-compose up

If you make changes to the frontend code, you need to run:

make frontend

Once the database is running you can compile and start the API service:

make api

To install it as a systemd service:

sudo make install_api

To run it manually:

./_build/shieldwall-api -config api.yaml
Clone this wiki locally