TradeMirror is a monorepo containing:
apps/web: Next.js (TypeScript) frontend with Tailwind CSS and shadcn/ui-style components.services/api: FastAPI backend service.packages/shared: Shared schemas/types for cross-service contracts.infra: Local infrastructure definitions (Docker Compose).docs: Architecture and onboarding documentation.
- Node.js 20+
- npm 10+
- Python 3.11+
- Docker + Docker Compose
cd apps/web
npm installcd services/api
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txtFrom repository root:
docker compose -f infra/docker-compose.yml up --buildServices:
- API:
http://localhost:8000 - API health:
http://localhost:8000/health - Postgres:
localhost:5432 - Redis:
localhost:6379
In a new terminal:
cd apps/web
npm run devOpen http://localhost:3000.
- Web health route:
GET /api/health(Next.js route handler) - API health route:
GET /health(FastAPI)
- This scaffold intentionally contains no business logic yet.
- Shared contracts should be added under
packages/sharedand consumed by both frontend and backend.