Welcome to the 🚀 FastAPI Project Starter! This guide will help you set up and run your FastAPI project quickly and efficiently. It covers essential topics like 🔧 installation, 📦 dependencies, and 🖥️ running the development server.
- 📂 Repository management
- 🔐 Authentication
- 🛡️ Middlewares (session)
⚠️ Exception handling- 🛠️ SQLAlchemy
- 🧪 Pytest
The uv
tool simplifies 📋 dependency management and running the development server. Follow the steps below to install it based on your 🖥️ operating system:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
Using curl
:
curl -LsSf https://astral.sh/uv/install.sh | sh
Using wget
:
wget -qO- https://astral.sh/uv/install.sh | sh
ℹ️ Note: For more details or troubleshooting, visit the official UV installation documentation.
uv sync
pip install -r requirements.txt
uv run fastapi dev
fastapi dev
uvicorn app.main:app
Once the server is running, your application will be served at:
- 🌐 Base URL: http://127.0.0.1:8000
- 📄 API Documentation: http://127.0.0.1:8000/docs