API for interacting with Action Creator component and scheduling spatial computation in EO Data Hub.
Create the environment:
make env
Run pre-commit
hooks:
make pc
This section provides step-by-step instructions on how to run a FastAPI application locally.
Before running the FastAPI application, ensure that you have the environment configured.
You can now run the FastAPI application using Uvicorn, which is an ASGI server for Python apps:
uvicorn app:app --reload
app:app
: Refers to theapp
instance in themain.py
file.--reload
: Enables auto-reload, so the server will restart when you make changes to the code.
Once the application is running, you can access it in your web browser at:
http://127.0.0.1:8000
FastAPI automatically generates interactive API documentation. You can explore it by navigating to the following URLs:
- Swagger UI: http://127.0.0.1:8000/docs
- ReDoc: http://127.0.0.1:8000/redoc
- Stopping the Server: You can stop the server by pressing
CTRL+C
in the terminal where the server is running.
You can read more here:
To build project documentation run:
make docs
and then:
mkdocs serve