API service for the ChocoMax shop site, delivering essential business logic and data through a modern, FastAPI-powered interface.
This repository serves as the core API application for ChocoMax. It handles product listings, orders, user preferences, and more — enabling both the site and any future clients (like mobile apps) to interact with the system.
ChocoMax is a growing project focused on bringing chocolate lovers a modern, efficient way to shop online.
This API repository powers:
- 📦 Product and order management
- 🔐 Authentication and user preferences
- 🌍 Multi-language support
- ⚙️ Internal and public API endpoints
🗓️ Started: 2025 🚀 Status: In active development
- FastAPI-based API
- RESTful endpoints with API versioning
- Docker and DevContainer support
- Packageable as a Python module
Note
This repository contains only the API logic. It does not include front-end assets, user interfaces, or any kind of data storage.
- 🧪 ChocoMax API Tests — Unit and integration test cases
- 🐳 .devcontainer/ — Containerized development setup
- 📄
Dockerfile— Production-ready Docker image - ⚙️
setup.py— Python packaging configuration
- FastAPI — Web framework
- Docker — Containerized builds and deployments
- Dev Containers — Reproducible development environments
- Visual Studio Code Tasks — Custom automation
A ready-to-use development container is defined in .devcontainer/. Features:
- 🐧 Alpine-based image with FastAPI.
- 🚀 Launches a fully functional API environment with one command
- 📎 Includes Visual Studio Code extensions and automation tasks (build, test)
- Open the repository in Visual Studio Code
- Select “Reopen in Container”
- Run the
Start FastAPI servertask (or useuvicornmanually)
docker build -t chocomax-fastapi-image .
docker run -d -p 8000:8000 --name chocomax-api-container chocomax-fastapi-imageThen visit: http://localhost:8000
Generate the package (without installing it locally):
python -m buildThis will create a
dist/directory containing your.whland.tar.gzpackages.
If you’d like to help improve the API or suggest new features:
- Fork this repository
- Create a feature branch
- Submit a pull request with clear description and rationale
We welcome ideas around security, performance, and developer experience.
This project is licensed under the MIT License.
Thanks for using ChocoMax API! For more details about the ChocoMax platform, stay tuned for upcoming documentation and repositories.