panel-ewsConfigure and Run the Application

Configure the application

The application configuration files are present under the configarrow-up-right directory.

The configuration file read varies with the environment:

Refer to config.example.tomlarrow-up-right for all the available configuration options. Refer to development.tomlarrow-up-right for the recommended defaults for local development.

Ensure to update the development.tomlarrow-up-right file if you opted to use different database credentials as compared to the sample ones included in this guide.

Once you're done with configuring the application, proceed with running the application.

Run the application

  1. Compile and run the application using cargo:

    cargo run

    If you are using nix, you can compile and run the application using nix:

    nix run
  2. Verify that the server is up and running by hitting the health endpoint:

    curl --head --request GET 'http://localhost:8080/health'

    If the command returned a 200 OK status code, proceed with trying out our APIs.

arrow-up-triangle-squareTry out APIschevron-right

Last updated

Was this helpful?