https://github.com/tbcks10/crud-fastapi-postgresql
This repository provides a robust and scalable project template for building high-performance RESTful APIs using Python, FastAPI, and PostgreSQL. It is built upon a clean, modular architecture that separates concerns into distinct layers: API endpoints, business logic (CRUD operations), and data models.
https://github.com/tbcks10/crud-fastapi-postgresql
crud fasapi postgresql python
Last synced: 8 months ago
JSON representation
This repository provides a robust and scalable project template for building high-performance RESTful APIs using Python, FastAPI, and PostgreSQL. It is built upon a clean, modular architecture that separates concerns into distinct layers: API endpoints, business logic (CRUD operations), and data models.
- Host: GitHub
- URL: https://github.com/tbcks10/crud-fastapi-postgresql
- Owner: tbcks10
- Created: 2025-07-09T14:05:00.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-07-09T14:17:50.000Z (9 months ago)
- Last Synced: 2025-07-22T06:06:28.371Z (8 months ago)
- Topics: crud, fasapi, postgresql, python
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Resume Project Overview
This repository provides a robust and scalable project template for building high-performance RESTful APIs
using Python, FastAPI, and PostgreSQL. It is built upon a clean, modular architecture that separates
concerns into distinct layers: API endpoints, business logic (CRUD operations), and data models. This
structure provides a solid foundation for developing maintainable and scalable backend applications.
Key Features & Market Value
* High Performance: Leverages the full speed of FastAPI, one of the fastest Python web frameworks
available, ensuring low latency and high throughput for your applications.
* Rapid Development: Designed to be intuitive and easy to code. Features like Pydantic data validation and
automatic interactive API documentation (via Swagger UI) drastically reduce development time and
time-to-market.
* Reliability & Data Integrity: Enforces strict data validation for all incoming and outgoing data through
Pydantic schemas, minimizing bugs and ensuring data consistency.
* Scalable & Maintainable: The modular architecture makes it simple to add new features, troubleshoot
issues, and onboard new developers. The clear separation of logic prevents code from becoming tangled as
the project grows.
* Secure Database Interaction: Uses SQLAlchemy, a powerful and secure SQL toolkit that helps prevent common
vulnerabilities like SQL injection.
Common Use Cases & Applications
This template is the ideal starting point for a wide range of backend services, including:
* E-commerce Platforms: Manage products, customers, orders, and inventory.
* Content Management Systems (CMS): Power blogs, websites, and documentation platforms.
* APIs for Mobile Apps: Provide a reliable backend for social networks, delivery services, fitness
trackers, and more.
* SaaS Products: Build the core business logic for any Software-as-a-Service application.
* IoT Platforms: Ingest, process, and serve data from IoT devices and sensors.
* Internal Business Tools: Create systems for task management, scheduling, or data administration.
# Install the required packages
`python -m pip install -r requirements.txt`
#If everything completes should be available on [notes](http://localhost:8000/api/blogs)
#Docs are generated on [docs](http://localhost:8000/docs)
## Tests
Tests are available using pytest
Run them using `pytest .` while in the root directory (/python-fastapi-postgresql-curd-example)
## Documentation
Open API Documentation is provided by [Redoc](http://localhost:8000/redoc)
# Start the app using Uvicorn
`uvicorn app.main:app --reload --workers 1 --host 0.0.0.0 --port 8000`
or 'uvicorn app.main:app --reload'