https://github.com/wpcodevo/fastapi_sqlalchemy
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.
https://github.com/wpcodevo/fastapi_sqlalchemy
crud-api crud-app fastapi fastapi-crud fastapi-crud-app fastapi-sqlalchemy rest-api restful-api sqlite
Last synced: 16 days ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/wpcodevo/fastapi_sqlalchemy
- Owner: wpcodevo
- Created: 2022-11-10T08:09:13.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-04-12T13:38:15.000Z (17 days ago)
- Last Synced: 2025-04-12T13:51:44.731Z (17 days ago)
- Topics: crud-api, crud-app, fastapi, fastapi-crud, fastapi-crud-app, fastapi-sqlalchemy, rest-api, restful-api, sqlite
- Language: Python
- Homepage: https://codevoweb.com/build-a-crud-app-with-fastapi-and-sqlalchemy
- Size: 55.7 KB
- Stars: 52
- Watchers: 1
- Forks: 28
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Build a CRUD App with FastAPI and SQLAlchemy
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.

## Topics Covered
- Run the SQLAlchemy FastAPI App Locally
- Run the Frontend App Locally
- Setup FastAPI and Run the HTTP Server
- Designing the CRUD API
- Setup SQLAlchemy with SQLite
- Setup SQLAlchemy with PostgreSQL
- Create Database Model with SQLAlchemy
- Database Model for SQLite Database
- Database Model for Postgres Database
- Create Validation Schemas with Pydantic
- Define the Path Operation Functions
- Get All Records
- Create a Record
- Update a Record
- Retrieve a Single Record
- Delete a Single Record
- Connect the API Router to the AppRead 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)