Skip to content

PrimeTimeTran/template-backend-python-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

A FastAPI, GraphQL, SQLAlchemy, UV, & Unicorn Backend template for future reference.

Setup

  1. Create a .env & .env.local.

    • Add appropriate keys/values
  2. Create a db.

    • $ python -m src.database.create_tables
  3. Run app.

    # Install deps
    uv pip install -r requirements.txt
    
    # Run with port
    uvicorn src.main:app --reload --port 8080
    
    # Run with env dev
    ENV_FILE=.env.local uvicorn src.main:app --reload --port 8080
    
    # Run with env staging
    ENV_FILE=.env uvicorn src.main:app --reload --port 8080
  4. Gogo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages