Repository navigation
Local Development
Build the cpp_core C++20 extension, run the FastAPI gateway and Celery workers in Python 3.12+, start the Next.js 16 development server, and execute targeted component and end-to-end test suites outside Docker.
cpp_core/ has zero third-party C++ runtime dependencies and uses CMake 3.20+ with FetchContent to download pybind11 v2.11.1 and GoogleTest v1.14.0 during configuration. Compiler warnings are treated as errors (-Wall -Wextra -Werror).
- Configure and compile the static library (
paladio_engine_static),pybind11module (paladio_core), and C++ unit tests:
cmake -S cpp_core -B cpp_core/build -DPALADIO_BUILD_TESTS=ON
cmake --build cpp_core/build -j4- Run the 23 GoogleTest cases via CTest:
ctest --test-dir cpp_core/build --output-on-failure- Build with AddressSanitizer and UndefinedBehaviorSanitizer when debugging memory or bitmask logic:
cmake -S cpp_core -B cpp_core/build-asan \
-DPALADIO_BUILD_TESTS=ON \
-DPALADIO_ENABLE_SANITIZERS=ON
cmake --build cpp_core/build-asan -j4
ctest --test-dir cpp_core/build-asan --output-on-failure- Create and activate your Python virtual environment (reused for the backend below), then install
paladio_coreviascikit-build-core:
python3 -m venv .venv
source .venv/bin/activate
pip install -e ./cpp_core
pytest cpp_core/tests/python/test_engine.py -qTip
Standalone paladio_core build flags
Pass -DPALADIO_ENABLE_NATIVE=ON in Release builds to add -march=native alongside -O3 -DNDEBUG, or -DPALADIO_BUILD_PYTHON=OFF when embedding only the paladio::engine C++ static target. You can pass --no-build-isolation to pip install -e ./cpp_core only if scikit-build-core and pybind11 are already installed in the active virtual environment.
The backend requires Python 3.10+ (Docker uses Python 3.12), PostgreSQL 16 with timescaledb and vector extensions, Redis 7, Valhalla (optional for local unit tests), Tesseract OCR, and Poppler utilities.
- Install OS packages required for boarding pass and receipt OCR on Debian/Ubuntu:
sudo apt-get update && sudo apt-get install -y \
tesseract-ocr tesseract-ocr-eng tesseract-ocr-spa poppler-utils fonts-liberation fonts-dejavu-core- Activate
.venv(or create it if you skipped step 4 above), installbackendwith dev extras, and ensurepaladio_coreis installed in the same environment:
source .venv/bin/activate
pip install -e "./backend[dev]"- Start PostgreSQL, Redis, and Valhalla via Docker Compose while running Python processes natively on your host. Include
docker-compose.dev.ymlsodb,redis, andvalhallabind127.0.0.1ports (5432,6379,8002), and pass--no-depssovalhalladoes not trigger the Dockermigrateservice. Because the backend does not auto-load.envand Celery defaultsREDIS_URLtoredis://redis:6379/0, exportDATABASE_URLandREDIS_URLbefore running Alembic migrations and verified fare quotes (adjusting the password inDATABASE_URLif your.envsets a customPOSTGRES_PASSWORD):
docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d --no-deps db redis valhalla
export DATABASE_URL="postgresql+asyncpg://postgres:postgres@localhost:5432/paladio"
export REDIS_URL="redis://localhost:6379/0"
cd backend
alembic upgrade head
python scripts/migrate_verified_fares_to_quotes.py- Launch FastAPI, the Celery worker across all three queues (
celery,transit_build,poi_hydration), and Celery Beat in separate terminals (with.venvactivated andDATABASE_URL/REDIS_URLexported;VALHALLA_URLalready defaults tohttp://localhost:8002):
uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload --reload-dir appcelery -A app.celery_app worker --loglevel=info \
-Q celery,transit_build,poi_hydration -c 2 --prefetch-multiplier=1celery -A app.celery_app beat --loglevel=info- Run targeted backend tests (
backend/tests/conftest.pyforces a Python mock forpaladio_coreby default viaMOCK_PALADIO_CORE=1; passMOCK_PALADIO_CORE=0whenever verifying compiledpaladio_coreoutput):
pytest backend/tests/test_bridge.py -k test_bridge_64_pois -q
# Or against the compiled C++20 extension:
MOCK_PALADIO_CORE=0 pytest backend/tests/test_bridge.py -k test_bridge_64_pois -qNote
Optional Playwright scraping dependency
playwright is intentionally omitted from backend/pyproject.toml and backend/Dockerfile, and is lazy-imported only when optional browser-based lodging or rating enrichment fallbacks run (booking_scraper.py, google_maps_rating_resolver.py, cli/enrich_ratings.py).
The frontend uses Node.js 22, Next.js 16 (^16.4.6), React 19 (19.2.8), CSS Modules, and Playwright for both React component testing and full end-to-end tests.
- Install dependencies and start the development server:
cd frontend
npm ci
npm run dev- Run ESLint, Playwright component tests (
playwright-ct.config.ts), or a scoped E2E test (playwright.config.ts):
npm run lint
npm run test:ct
npx playwright test tests/e2e/engine.spec.ts- Install pre-commit hooks from the repository root so
ruff,ruff-format,eslint,clang-format, andscripts/guard_demo_branch.shrun before every commit:
pre-commit install- Control Center & Taste Star
- Creating Trips (/engine)
- Trip Workspace & Speed Dial
- Public Transit & Valhalla
- Bookings Wallet & Passes
- Route Monitoring & Deals
- Costs & Group Splitting
- Trip Archive, Photos & Sharing
- AI Travel Assistant
- Configuration & Env Vars
- City POIs, Maps & GTFS
- LLM Providers & MCP Clients
- Photo Sync, Relays & Secrets
- Reverse Proxy & Security
- Backups, Updates & Troubleshooting
- System Overview
- Deterministic Trip Engine
- C++20 Combinatorial Core
- Semantic RAG & Taste Learning
- Deal Engine & Multi-Modal Transit
- Agent & MCP Safety Model
- Frontend, PWA & Demo Mode