Skip to content

Backend

Ivan Zhang edited this page Dec 8, 2023 · 3 revisions

This library comes with a pre-built server that user can run locally. The server is built using FastAPI. The server is used to receive requests from the tests and to send alerts. The server is also used to store the results of the tests in a database. Finally the server hosts the frontend where you can view all the existing data tests, setup alerts, silence alerts, and view the results of the tests. To start the server, use the panda_patrol command:

usage: python -m panda_patrol [-h] [--host HOST] [--port PORT]

The panda_patrol command takes in the following arguments:

  • --host: Host to run the server on. Defaults to localhost.
  • --port: Port to deploy the backend and frontend to. Defaults to 8000.

To read more about the server, see Endpoints. This starts running the server locally. To learn set up alerts and connect to the server, see Environment Variables.

Clone this wiki locally