Skip to content

Instantly share code, notes, and snippets.

@nivethan-me
Last active January 21, 2025 13:30
Show Gist options
  • Save nivethan-me/053ff7ce600eaea8774ac334e4008ad5 to your computer and use it in GitHub Desktop.
Save nivethan-me/053ff7ce600eaea8774ac334e4008ad5 to your computer and use it in GitHub Desktop.
create a fastapi project with uv

Create a FastAPI project with uv package manager

  1. Install uv
    curl -LsSf https://astral.sh/uv/install.sh | sh
    
  2. create a project
    uv init fastapi-lms
    
  3. create a virtual environement
    uv venv
    
  4. activate the virtual environment
    source .venv/bin/activate
    
  5. install packages
    uv add "fastapi[standard]"
    
  6. run the project
    fastapi dev main.py
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment