This server helps you to automatically call your application's API, in order to prevent inactivity.
It is designed to work like that:
sequenceDiagram
participant Client
participant Keep alive server
Client->>Keep alive server: Post request with Base URL
Keep alive server->>Client: Get request to Base URL
To launch the server, run:
$ uvicorn main:app
To use it with live reload, run:
$ uvicorn main:app --reload
To use it with a custom port, run:
$ uvicorn main:app --port 8000
To use it with all IPs, run:
$ uvicorn main:app --host 0.0.0.0