drincruz / fastapi-sandbox

Sandbox for playing around with FastAPI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fastapi-sandbox

Sandbox for playing around with FastAPI

Local Dev

Docker Setup

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.

Local Setup

Set up a new virtual environment (optional)

You will be installing some new Python requirements, so it's recommended to get a virtual environment set up.

python -m venv .venv

Install Requirements

The typical pip install will help you get set up.

pip install -r requirements.txt

Running fastapi

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

About

Sandbox for playing around with FastAPI

License:MIT License


Languages

Language:Python 63.3%Language:Dockerfile 36.7%