{"id":16617652,"url":"https://github.com/khanhduzz/python-fastapi","last_synced_at":"2026-05-08T09:31:59.984Z","repository":{"id":254941056,"uuid":"848033322","full_name":"khanhduzz/python-fastAPI","owner":"khanhduzz","description":"Python with FastAPI project","archived":false,"fork":false,"pushed_at":"2024-09-04T09:19:53.000Z","size":79,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-20T01:49:04.341Z","etag":null,"topics":["fastapi","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/khanhduzz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-08-27T02:20:46.000Z","updated_at":"2024-09-04T09:19:57.000Z","dependencies_parsed_at":"2024-11-17T01:04:39.297Z","dependency_job_id":"6fea7297-c4e3-4a1a-8d76-af9daefe172d","html_url":"https://github.com/khanhduzz/python-fastAPI","commit_stats":null,"previous_names":["khanhduzz/python-fastapi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/khanhduzz/python-fastAPI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khanhduzz%2Fpython-fastAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khanhduzz%2Fpython-fastAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khanhduzz%2Fpython-fastAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khanhduzz%2Fpython-fastAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/khanhduzz","download_url":"https://codeload.github.com/khanhduzz/python-fastAPI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/khanhduzz%2Fpython-fastAPI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32774727,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","python"],"created_at":"2024-10-12T02:17:27.233Z","updated_at":"2026-05-08T09:31:59.961Z","avatar_url":"https://github.com/khanhduzz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python FastAPI\r\nA FastAPI mini application to learn how to use FastAPI with SQLAlchemy and PostGreSQL.\r\n- Admin username: james\r\n- Admin password: depend on your .env setup\r\n\r\n# Sample Setup \r\n- Create a virtual environment using `virtualenv` module in python.\r\n```bash\r\n# Install module (globally)\r\npip install virtualenv\r\n\r\n# Generate virtual environment\r\nvirtualenv --python=\u003cyour-python-runtime-version\u003e venv\r\n\r\n# Activate virtual environment\r\nsource venv/bin/activate\r\n\r\n# Install depdendency packages\r\npip install -r requirements.txt\r\n```\r\n- Configure `.env` file by creating a copy from `.env.sample`\r\n- Setup a postgres docker container\r\n```bash\r\ndocker run -p 5432:5432 --name postgres -e POSTGRES_PASSWORD=\u003cyour-preferred-one\u003e -d postgres:14\r\n```\r\n- At `app` directory, run `alembic` migration command. Please make sure your postgres DB is ready and accessible. In case you want to use `SQLite` instead, please be sure to configure the `env.py` file in `alembic` folder to support `batch execution` since `SQLite` does not support `ALTER` command, which is needed to configure the foreign key and establish the indexes.\r\n```bash\r\n# Migrate to latest revison\r\nalembic upgrade head\r\n\r\n# Dowgragde to specific revision\r\nalembic downgrade \u003crevision_number\u003e\r\n\r\n# Downgrade to base (revert all revisions)\r\nalembic downgrade base\r\n\r\n# Create new revision\r\nalembic revision -m \u003ccomment\u003e\r\n```\r\n- Run `uvicorn` web server from `app` directory (`reload` mode is for development purposes)\r\n```bash\r\nuvicorn main:app --reload\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhanhduzz%2Fpython-fastapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkhanhduzz%2Fpython-fastapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkhanhduzz%2Fpython-fastapi/lists"}