https://github.com/omar-aldesi/fast-ecommerce
A robust and scalable e-commerce backend built with FastAPI, featuring real-time notifications, background task processing, and containerized deployment.
https://github.com/omar-aldesi/fast-ecommerce
docker ecommerce fastapi postgresql python rest-api
Last synced: 3 months ago
JSON representation
A robust and scalable e-commerce backend built with FastAPI, featuring real-time notifications, background task processing, and containerized deployment.
- Host: GitHub
- URL: https://github.com/omar-aldesi/fast-ecommerce
- Owner: omar-aldesi
- Created: 2024-07-29T15:09:50.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-02T21:20:43.000Z (almost 2 years ago)
- Last Synced: 2025-01-21T22:35:03.041Z (over 1 year ago)
- Topics: docker, ecommerce, fastapi, postgresql, python, rest-api
- Language: Python
- Homepage:
- Size: 41 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ๐๏ธ FastAPI E-Commerce Backend
[](https://fastapi.tiangolo.com/)
[](https://www.docker.com/)
[](https://www.postgresql.org/)
A robust and scalable e-commerce backend built with FastAPI, featuring real-time notifications, background task processing, and containerized deployment.
## ๐ Features
- ๐ User authentication and authorization
- ๐ Product management and categorization
- ๐ฆ Order processing and tracking
- ๐ Shipping integration
- ๐ณ Secure payment processing
- ๐ Real-time notifications via WebSockets
- ๐ Background task processing
- ๐ณ Containerized with Docker for easy deployment
- ๐ REST api
- ๐ Caching System
## ๐ ๏ธ Technologies Used
- FastAPI
- PostgreSQL
- Docker
- WebSockets
- Asyncio
- Alembic (for database migrations)
## ๐ Getting Started
1. Clone the repository:
git clone https://github.com/your-username/fast-ecommerce.git
cd fast-ecommerce
2. Set up environment variables:
Edit the `.env` file with your configuration.
3. Build and run the Docker containers:
docker-compose up --build
4. Access the API documentation at:
`http://localhost:8000/docs` / `http://localhost:8000/redoc/` / `http://localhost:8000/rapidoc`
## ๐ API Documentation
Our API provides comprehensive endpoints for managing all aspects of the e-commerce platform:
- ๐ค User Management
- ๐ท๏ธ Product Catalog
- ๐ Shopping Cart
- ๐ฆ Order Processing
- ๐ Shipping
- ๐ฐ Payment Integration
- ๐ Real-time Notifications
For detailed API documentation, please refer to the Swagger UI at `/docs` or ReDoc at `/redoc` when running the application.
## ๐ง Development
To run the application in development mode:
1. Install dependencies:
pip install -r requirements.txt
2. Run the FastAPI server:
uvicorn main:app --reload
3. For database migrations:
alembic upgrade head
## ๐งช Testing
Run tests using pytest:
pytest
## ๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
## ๐ License
This project is licensed under the MIT License .
## ๐ Contact
For any queries or support, please open an issue or contact [omar.desi.100@gmail.com].
---
Happy coding! ๐โจ