https://github.com/rithick574/fastapi-ecommerce-postgresql
A robust and scalable e-commerce backend built with FastAPI and SQLAlchemy. This project provides a solid foundation for developing modern, high-performance online retail platforms.
https://github.com/rithick574/fastapi-ecommerce-postgresql
ecommerce fastapi postgresql postresql python render
Last synced: 3 months ago
JSON representation
A robust and scalable e-commerce backend built with FastAPI and SQLAlchemy. This project provides a solid foundation for developing modern, high-performance online retail platforms.
- Host: GitHub
- URL: https://github.com/rithick574/fastapi-ecommerce-postgresql
- Owner: Rithick574
- License: mit
- Created: 2024-10-29T14:17:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-07T10:37:41.000Z (over 1 year ago)
- Last Synced: 2025-04-05T16:12:51.670Z (about 1 year ago)
- Topics: ecommerce, fastapi, postgresql, postresql, python, render
- Language: Python
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FastAPI E-Commerce Backend
This project is a robust e-commerce backend built with FastAPI, providing a scalable and efficient API for modern e-commerce applications.
## ๐ Features
- User authentication and authorization
- Product management
- Order processing
- Secure payment integration
- Inventory management
- RESTful API design
- Asynchronous database operations
- Comprehensive API documentation with Swagger UI
## ๐ Tech Stack
- [FastAPI](https://fastapi.tiangolo.com/): High-performance web framework for building APIs
- [SQLAlchemy](https://www.sqlalchemy.org/): SQL toolkit and ORM
- [Pydantic](https://pydantic-docs.helpmanual.io/): Data validation and settings management
- [PostgreSQL](https://www.postgresql.org/): Advanced open-source relational database
- [Alembic](https://alembic.sqlalchemy.org/): Database migration tool
- [pytest](https://docs.pytest.org/): Testing framework
## ๐ Getting Started
1. Clone the repository:
2. Set up a virtual environment:
3. Install dependencies:
4. Set up your database and update the `DATABASE_URL` in `app/database.py`.
5. Run database migrations:
6. Start the FastAPI server:
7. Open `http://localhost:8000/docs` in your browser to see the Swagger UI documentation.
## ๐งช Running Tests
Execute the test suite using pytest:
## ๐ API Documentation
Once the server is running, you can access the full API documentation at:
- Swagger UI: `http://localhost:8000/docs`
- ReDoc: `http://localhost:8000/redoc`