{"id":19554384,"url":"https://github.com/sebastianruizm/fastapi-postgres","last_synced_at":"2026-04-09T08:04:21.708Z","repository":{"id":242747378,"uuid":"809557360","full_name":"sebastianruizm/fastapi-postgres","owner":"sebastianruizm","description":"Integración entre FastAPI y Postgres","archived":false,"fork":false,"pushed_at":"2024-06-04T18:15:26.000Z","size":844,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T20:48:23.933Z","etag":null,"topics":["docker","fastapi","postgres","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sebastianruizm.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-06-03T02:08:07.000Z","updated_at":"2024-06-04T18:15:29.000Z","dependencies_parsed_at":"2024-06-04T20:23:30.770Z","dependency_job_id":"1d720193-6c79-4efb-98ef-b4adeb6a420e","html_url":"https://github.com/sebastianruizm/fastapi-postgres","commit_stats":null,"previous_names":["sebastianruizm/fastapi-postgres"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianruizm%2Ffastapi-postgres","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianruizm%2Ffastapi-postgres/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianruizm%2Ffastapi-postgres/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebastianruizm%2Ffastapi-postgres/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sebastianruizm","download_url":"https://codeload.github.com/sebastianruizm/fastapi-postgres/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240810690,"owners_count":19861287,"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":["docker","fastapi","postgres","python"],"created_at":"2024-11-11T04:27:16.556Z","updated_at":"2026-04-09T08:04:21.673Z","avatar_url":"https://github.com/sebastianruizm.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fastapi-postgres\nLectura y escritura en base de datos Postgres con FastAPI\n\n```mermaid\nflowchart LR\n    U[\"User\"]\n    U-.-\u003e|\"POST\"|F\n    U--\u003e|\"GET\"|F\n    subgraph D[\"Docker\"]\n        P[(\"Postgres\")]\n        F[\"FastAPI\"]\n        F-.-\u003e|\"INSERT\"|P\n        F--\u003e|\"SELECT\"|P\n    end\n```\n\n## Quickstart\n\nEn este ejemplo utilicé GitHub Codespaces pero también se puede ejecutar localmente\n\n### 0 Add port\n\nSolo para GitHub Codespaces\n\n![0-1](assets/images/00-add-port1.png)\n\n![0-2](assets/images/00-add-port2.png)\n\n### 1 Build\n\nEjecutar docker-compose mediante Makefile\n\n```bash\nmake build\n```\n\n![1-1](assets/images/01-make-build1.png)\n\n### 2 Check Postgres\n\nValidar que Postgres se está ejecutando correctamente\n\n![2-1](assets/images/02-check-postgres1.png)\n\n### 3 Check FastAPI\n\nValidar que FastAPI se está ejecutando correctamente\n\nhttp://0.0.0.0:8000\n\n![3-1](assets/images/03-check-fastapi1.png)\n\n![3-2](assets/images/03-check-fastapi2.png)\n\n### 4 FastAPI Docs\n\nAcceder a FastAPI docs para interactuar con la base de datos Postgres\n\nhttp://0.0.0.0:8000/docs\n\n![4-1](assets/images/04-fastapi-docs1.png)\n\n### 5 API POST\n\nInsertar registro en la base de datos mediante método POST\n\n![5-1](assets/images/05-fastapi-post1.png)\n\n![5-2](assets/images/05-fastapi-post2.png)\n\n### 6 API GET\n\nConsultar registro en la base de datos mediante método GET\n\n![6-1](assets/images/06-fastapi-get1.png)\n\n![6-2](assets/images/06-fastapi-get2.png)\n\n### 7 Validate Postgres\n\nValidar datos en Postgres\n\n![7-1](assets/images/07-validate-postgres1.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastianruizm%2Ffastapi-postgres","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebastianruizm%2Ffastapi-postgres","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastianruizm%2Ffastapi-postgres/lists"}