Sandbox for playing around with FastAPI
You should be able to run the environment in a container. You just need to have Docker installed and then you can try running the following to get started.
docker compose watch
After that completes you can just navigate to http://localhost.
You will be installing some new Python requirements, so it's recommended to get a virtual environment set up.
python -m venv .venv
The typical pip install
will help you get set up.
pip install -r requirements.txt
After installing the requirements, fastapi
should be available to run in a shell. Run the following to run fastapi in development mode.
fastapi dev src/main.py