{"id":24782168,"url":"https://github.com/samyxdev/fastapi-supabase-template","last_synced_at":"2025-06-16T20:38:36.758Z","repository":{"id":274482568,"uuid":"911652388","full_name":"samyxdev/fastapi-supabase-template","owner":"samyxdev","description":"Minimal working template with auth for FastAPI, Supabase, SQLModel and more.","archived":false,"fork":false,"pushed_at":"2025-02-08T12:28:26.000Z","size":90,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T05:32:16.598Z","etag":null,"topics":["alembic","fastapi","fastapi-boilerplate","fastapi-template","sqlmodel","supabase","supabase-auth","supabase-db"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samyxdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-03T14:23:18.000Z","updated_at":"2025-02-19T13:19:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"da8e42bf-6e1e-4531-b0a4-5c61b5c04e8c","html_url":"https://github.com/samyxdev/fastapi-supabase-template","commit_stats":null,"previous_names":["samyxdev/fastapi-supabase-template"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samyxdev/fastapi-supabase-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyxdev%2Ffastapi-supabase-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyxdev%2Ffastapi-supabase-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyxdev%2Ffastapi-supabase-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyxdev%2Ffastapi-supabase-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samyxdev","download_url":"https://codeload.github.com/samyxdev/fastapi-supabase-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyxdev%2Ffastapi-supabase-template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260234212,"owners_count":22978958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alembic","fastapi","fastapi-boilerplate","fastapi-template","sqlmodel","supabase","supabase-auth","supabase-db"],"created_at":"2025-01-29T11:16:19.964Z","updated_at":"2025-06-16T20:38:36.731Z","avatar_url":"https://github.com/samyxdev.png","language":"Python","readme":"# Minimal template for FastAPI, Supabase, SQLModel and Alembic\n\nThis is a minimal template for a FastAPI project with Supabase, SQLModel and Alembic.\n\n## Features\n\n- FastAPI for building APIs\n- Supabase for authentication and database\n- SQLModel for ORM\n- Alembic for database versionning and migrations\n- uv for dependency management\n\nThe project features a basic example of a bookmark application, supporting CRUD operations with Supabase authentication (including compatibility with Swagger's Auth).\n\n## Installation\n\n1. Clone the repository:\n    ```bash\n    git clone https://github.com/yourusername/aipocket.git\n    cd aipocket\n    ```\n\n2. Install UV:\n    ```bash\n    pip install uv\n    ```\n    You don't have to do that in a virtual environment, as UV is a standalone tool.\n    UV will later on install the dependencies for you in a virtual environnement.\n\n## Usage\n\n1. Set up your environment variables for Supabase and database configuration or use an `.env` file based on the given example:\n    ```bash\n    cp .env.example .env\n    ```\n\n    Update the `.env` file with your Supabase URL, Supabase key, database URL, and database URL for migrations.\n\n2. (Optional) In case you perform modifications to `models.py` (ie. modification to the DB scheme): Generate a new Alembic migration:\n    ```bash\n    uv run alembic revision --autogenerate -m \"Your message here\"\n    ```\n\n3. Run the database migrations:\n    ```bash\n    uv run alembic upgrade head\n    ```\n\n4. Start the FastAPI server:\n    ```bash\n    uv run uvicorn app.main:app --reload --reload-dir app\n    ```\n    At the first run, UV will create a virtual environment and install the dependencies inside it.\n\n5. Access the API documentation at `http://127.0.0.1:8000/docs`.\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamyxdev%2Ffastapi-supabase-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamyxdev%2Ffastapi-supabase-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamyxdev%2Ffastapi-supabase-template/lists"}