Want to contribute to Calidum Rotae Backend? Here's an in-depth guide on how to do that.
You'll also want to install the latest version of protoc to be able to generate Go files from your Protobuf spec.
Simply run this command to install the other dependencies:
$ make
To generate the gRPC Go files from the Protobuf spec, run this command:
$ make grpc
Change the values in the .env
file to your own values
To run the project locally using docker-compose
, simply run this command:
$ make docker-compose-dev
This will launch an instance of:
- calidum_rotae_service
- discord_provider
- email_provider
- grafana
- prometheus
- tempo
- opentelemetry-collector
Once you have executed the commands mentioned above, you can now test the API and view the traces generated by OTEL.
-
Visit the Grafana instance at http://localhost:8080.
-
To test the API, execute this command:
curl -X POST \
http://localhost:3000/ \
-H 'X-API-KEY: your_calidum_rotae_service_api_key_here' \
-H 'Content-Type: application/json' \
-d '{
"Sender": {
"FirstName": "firtname",
"LastName": "lastname",
"Email": "email@email.com"
},
"RequestService": "service",
"RequestDetails": "details"
}'