{"id":21801117,"url":"https://github.com/wpcodevo/fastapi_sqlalchemy","last_synced_at":"2025-06-16T02:38:16.254Z","repository":{"id":121163647,"uuid":"564205029","full_name":"wpcodevo/fastapi_sqlalchemy","owner":"wpcodevo","description":"In this article, I'll provide you with a simple and straightforward guide on how you can build a CRUD app with FastAPI and SQLAlchemy. The FastAPI app will run on a Starlette web server, use Pydantic for data validation, and store data in an SQLite database.","archived":false,"fork":false,"pushed_at":"2025-04-12T13:38:15.000Z","size":57,"stargazers_count":52,"open_issues_count":0,"forks_count":28,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T13:51:44.731Z","etag":null,"topics":["crud-api","crud-app","fastapi","fastapi-crud","fastapi-crud-app","fastapi-sqlalchemy","rest-api","restful-api","sqlite"],"latest_commit_sha":null,"homepage":"https://codevoweb.com/build-a-crud-app-with-fastapi-and-sqlalchemy","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/wpcodevo.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,"zenodo":null}},"created_at":"2022-11-10T08:09:13.000Z","updated_at":"2025-04-12T13:38:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"9e8915e8-3d7b-410c-a266-94721383603b","html_url":"https://github.com/wpcodevo/fastapi_sqlalchemy","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/wpcodevo%2Ffastapi_sqlalchemy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpcodevo%2Ffastapi_sqlalchemy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpcodevo%2Ffastapi_sqlalchemy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpcodevo%2Ffastapi_sqlalchemy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wpcodevo","download_url":"https://codeload.github.com/wpcodevo/fastapi_sqlalchemy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248760207,"owners_count":21157309,"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":["crud-api","crud-app","fastapi","fastapi-crud","fastapi-crud-app","fastapi-sqlalchemy","rest-api","restful-api","sqlite"],"created_at":"2024-11-27T11:16:23.015Z","updated_at":"2025-04-13T18:30:23.359Z","avatar_url":"https://github.com/wpcodevo.png","language":"Python","readme":"# Build a CRUD App with FastAPI and SQLAlchemy\n\nIn this article, I'll provide you with a simple and straightforward guide on how you can build a CRUD app with FastAPI and SQLAlchemy. The FastAPI app will run on a Starlette web server, use Pydantic for data validation, and store data in an SQLite database.\n\n![Build a CRUD App with FastAPI and SQLAlchemy](https://codevoweb.com/wp-content/uploads/2022/11/Build-a-CRUD-App-with-FastAPI-and-SQLAlchemy.png)\n\n## Topics Covered\n\n- Run the SQLAlchemy FastAPI App Locally\n- Run the Frontend App Locally\n- Setup FastAPI and Run the HTTP Server\n- Designing the CRUD API\n- Setup SQLAlchemy with SQLite\n- Setup SQLAlchemy with PostgreSQL\n- Create Database Model with SQLAlchemy\n  - Database Model for SQLite Database\n  - Database Model for Postgres Database\n- Create Validation Schemas with Pydantic\n- Define the Path Operation Functions\n  - Get All Records\n  - Create a Record\n  - Update a Record\n  - Retrieve a Single Record\n  - Delete a Single Record\n- Connect the API Router to the App\n\nRead the entire article here: [https://codevoweb.com/build-a-crud-app-with-fastapi-and-sqlalchemy](https://codevoweb.com/build-a-crud-app-with-fastapi-and-sqlalchemy)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpcodevo%2Ffastapi_sqlalchemy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwpcodevo%2Ffastapi_sqlalchemy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpcodevo%2Ffastapi_sqlalchemy/lists"}