Installation & Launch Guide
Requirements
- Docker and Docker Compose
- Make
- Python 3.9+ (if running locally, not via Docker)
Quick Start (Recommended)
- Clone the repository:
git clone https://github.com/your-org/online-shop.git
cd online-shop
- Build and start the services:
- Check that the service is available:
- API: http://localhost:5005 (or the port specified in docker-compose.yml)
Running Tests
- All tests:
- Unit tests:
- Integration tests:
- E2E tests:
Environment Variables
- DB_HOST — database host (default: localhost)
- DB_PASSWORD — database user password (default: abc123)
- API_HOST — API host (default: localhost)
Manual Launch (without Docker)
- Install dependencies:
pip install -r requirements.txt
pip install -e src
- Start Postgres locally and set environment variables.
- Run the Flask app:
export FLASK_APP=allocation.entrypoints.flask_app
export PYTHONPATH=src
flask run --host=0.0.0.0 --port=5005
← Back to Table of Contents