Full Stack FastAPI + Next.js Tutorial
GitHub Repos:
- https://github.com/fullstackbook/fullstackbook-todo-fastapi
- https://github.com/fullstackbook/fullstackbook-todo-nextjs
Description
Build a basic To Do Crud App with FastAPI and Next.js.
Terminal
mkdir fullstackbook-todo-fastapi
cd fullstackbook-todo-fastapi
python3 -m venv venv
. venv/bin/activate
pip install fastapi "uvicorn[standard]" alembic psycopg2 pytest requests
pip freeze > requirements.txt
uvicorn main:app --reload
createdb fullstackbook-todo-fastapi
psql fullstackbook-todo-fastapi
alembic init alembic
alembic revision -m "create todos table"
alembic upgrade head
alembic downgrade -1