A minimal FastAPI project using UV package installer.
- Install UV if you haven't already:
pip install uv- Create and activate a virtual environment:
uv venv
.venv/Scripts/activate # On Windows
source .venv/bin/activate # On Unix/MacOS- Install dependencies:
uv pip install -r requirements.txtRun the application using:
python main.pyThe server will start at http://localhost:8000
You can access:
- API endpoint:
http://localhost:8000/ - API documentation:
http://localhost:8000/docs