This repository is initialized as a monorepo with a Python FastAPI backend and a Next.js frontend.
backend/: API service + worker with domain modules:sources/supermarket connectors.extract/normalization and parsing.offers/API and business logic.alerts/reminder logic.
frontend/: Next.js application with routes:/offers/products/:id(implemented as/products/[id])/alerts
docker-compose.yml: local orchestration for API, DB, worker, and frontend.
- Copy
.env.exampleto.env. - Edit values as required for your machine.
cp .env.example .envDATABASE_URL: backend database connection string.NEXT_PUBLIC_API_URL: frontend base URL for API requests.API_PORT,FRONTEND_PORT,POSTGRES_PORT: host-exposed ports.
docker compose up --buildService endpoints:
- API:
http://localhost:8000 - Frontend:
http://localhost:3000 - Postgres:
localhost:5432
cd backend
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
uvicorn app.main:app --reloadcd frontend
npm install
npm run dev