/fastapi-todo-app

A todo app built with fastapi, sqlalchemy, postgresql, react, react-router, rtk-query, vite, mui.

Primary LanguagePython

fastapi-todo-app

FastAPI SQLAlchemy postgresql React React Router TypeScript mui rtk-query

Usage

Install and run server

git clone https://github.com/beary/fastapi-todo-app.git
cd fastapi-todo-app

# Create virtual environment
python -m venv .venv
source .venv/bin/activate

# Install python dependencies
python -m pip install -U pip
python -m pip install -U poetry
python -m poetry install

# Configure database (edit .env)
cp example.env .env

# Initialize database
python -m alembic upgrade head

# Run server
python -m fastapi run --app app app/main.py

Install and run web

prerequisites:

  • node
  • pnpm
cd web
pnpm install
pnpm run dev

visit http://localhost:5173

screenshot