{"id":16514740,"url":"https://github.com/andgineer/fastapi-playground","last_synced_at":"2026-05-12T00:49:36.763Z","repository":{"id":145706757,"uuid":"393288540","full_name":"andgineer/fastapi-playground","owner":"andgineer","description":"A sandbox environment for experimenting with FastAPI, SQLModel,  and Pydantic.","archived":false,"fork":false,"pushed_at":"2025-01-05T13:46:15.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-13T01:36:35.920Z","etag":null,"topics":["fastapi","pydantic","python"],"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/andgineer.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":"2021-08-06T07:08:59.000Z","updated_at":"2025-01-05T13:46:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"9a87304e-4ab6-415d-805f-debd15ed41a3","html_url":"https://github.com/andgineer/fastapi-playground","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andgineer%2Ffastapi-playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andgineer%2Ffastapi-playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andgineer%2Ffastapi-playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andgineer%2Ffastapi-playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andgineer","download_url":"https://codeload.github.com/andgineer/fastapi-playground/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241511759,"owners_count":19974456,"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":["fastapi","pydantic","python"],"created_at":"2024-10-11T16:13:38.884Z","updated_at":"2026-05-12T00:49:36.758Z","avatar_url":"https://github.com/andgineer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastAPI Playground\nA sandbox environment for experimenting with FastAPI, SQLModel, and Pydantic.\n\nPerfect for testing ideas, prototyping features, and learning the stack.\n\n## Quick Start\n### Local Development\n    . ./activate.sh\n\n    # FastAPI: Swagger UI at http://localhost:8000\n    make run\n\n    # SQLMoldel: Swagger UI at http://localhost:8000/docs\n    make sqlmodel\n\n### Docker Setup\n    docker-compose up -d --build\n    docker-compose exec sqlmodel alembic upgrade head  # Initialize database tables\n\n#### Docker Compose Services\n- **SQLModel Service**: Runs on port 8004\n- **FastAPI Service**: Runs on port 8000\n\nTest the SQLModel Service health with:\n\n    curl http://localhost:8004/ping\n\nExpected response: {\"ping\":\"pong!\"}\n\n## Database Setup\n\n### PostgreSQL Client Installation\n**macOS:**\n    brew doctor\n    brew update\n    brew install libpq\n    echo 'export PATH=\"/usr/local/opt/libpq/bin:$PATH\"' \u003e\u003e ~/.zshrc\n\n**Configure PostgreSQL password file:**\n    cp .pgpass ~/.pgpass\n    chmod 600 ~/.pgpass\n\n### Database Management\n**Connect to PostgreSQL:**\n    scripts/psql.sh\n\n**View User table structure:**\n    \\d+ User\n\n## 🔄 Database Migrations (Alembic)\n\n### Common Commands\n**View migration history:**\n    docker-compose exec sqlmodel alembic history -v\n\n**Generate new migration:**\n    docker-compose exec sqlmodel alembic revision --autogenerate -m \"description\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandgineer%2Ffastapi-playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandgineer%2Ffastapi-playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandgineer%2Ffastapi-playground/lists"}