https://github.com/atticuszeller/fastapi_supabase_template
👏fastapi deeply integrates with supabase,auth,curd postgresql,file upload ,etc , all in one😎,inspired by full stack fastapi postgresql
https://github.com/atticuszeller/fastapi_supabase_template
fastapi fastapi-admin fastapi-crud fastapi-template python supabase supabase-auth supabase-client supabase-db supabase-storage
Last synced: 16 days ago
JSON representation
👏fastapi deeply integrates with supabase,auth,curd postgresql,file upload ,etc , all in one😎,inspired by full stack fastapi postgresql
- Host: GitHub
- URL: https://github.com/atticuszeller/fastapi_supabase_template
- Owner: AtticusZeller
- License: mit
- Created: 2023-10-29T10:12:30.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-04T05:42:05.000Z (about 2 months ago)
- Last Synced: 2025-04-05T03:02:06.012Z (16 days ago)
- Topics: fastapi, fastapi-admin, fastapi-crud, fastapi-template, python, supabase, supabase-auth, supabase-client, supabase-db, supabase-storage
- Language: Python
- Homepage:
- Size: 1.59 MB
- Stars: 184
- Watchers: 3
- Forks: 14
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# FastAPI Supbase Template
## Environment
### Python
> [uv](https://github.com/astral-sh/uv) is an extremely fast Python package and project manager, written in Rust.
```bash
cd backend
uv sync --all-groups --dev
```### [Supabase](https://supabase.com/docs/guides/local-development/cli/getting-started?queryGroups=platform&platform=linux&queryGroups=access-method&access-method=postgres)
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.sh
>```
> modify the `.env` from the output of `supabase start` or run `supabase status` manually.## Test
```bash
cd 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_template` is your image tag name, remember replace it with yoursbuild
```bash
cd backend
docker build -t atticux/fastapi_supabase_template .
```test
```bash
bash 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"
```