An open API service indexing awesome lists of open source software.

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.

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`