Fastapi supabase template
👏fastapi deeply integrates with supabase,auth,curd postgresql,file upload ,etc , all in one😎,inspired by full stack fastapi postgresql
> [uv](https://github.com/astral-sh/uv) is an extremely fast Python package and project manager, written in Rust. The project is written primarily in Python, distributed under the MIT License license, first published in 2023. Key topics include: fastapi, fastapi-admin, fastapi-crud, fastapi-template, python.
FastAPI Supabase Template
Environment
Python
uv is an extremely fast Python package and project manager, written in Rust.
bashcd backend uv sync --all-groups --dev
Supabase
install supabase-cli
bash# brew in linux https://brew.sh/ brew install supabase/tap/supabase
launch supabase docker containers
bash# under repo root supabase start
[!NOTE]
bash# Update `.env` bash scripts/update-env.shmodify the
.envfrom the output ofsupabase startor runsupabase statusmanually.
Test
bashcd backend # test connection of db and migration scripts/pre-start.sh # unit test scripts/test.sh # test connection of db and test code scripts/tests-start.sh
Docker
[!note]
atticux/fastapi_supabase_templateis your image tag name, remember replace it with yours
build
bashcd backend docker build -t atticux/fastapi_supabase_template .
test
bashbash scripts/update-env.sh supabase start cd backend docker run --network host \ --env-file ../.env \ -it atticux/fastapi_supabase_template:latest \ bash -c "sh scripts/pre-start.sh && sh scripts/tests-start.sh"
Contributors
Showing top 4 contributors by commit count.
