Display rules and moves for the Mega Monopoly board game based on dice rolls.
Stack: React + Flask Theme: Playful, Minimalist, Colorful Accessibility: WCAG AA compliant
Created: 2025-11-05
- Input dice values (2 regular dice + 1 Monopoly special dice)
- Display game rules and suggested moves
- Mobile-responsive web interface
- Accessible design (keyboard navigation, screen reader support)
This project includes agent-ai capabilities for AI-assisted development using the app-builder profile.
/app-setup- Setup app environment/app-code- Generate app code (TDD)/app-test- Run tests (unit/integration/e2e)/app-validate- Validate app
@app-frontend-developer- Frontend development@app-backend-developer- Backend development@app-full-stack- Full-stack features@app-tester- TDD workflows@app-spec-writer- Specifications
cd /Users/Wolverine/00_PROJECTS/MONOPOLY_GAME_APP
code .- Type `/` in Claude Code chat to see all available commands
- Type `@` to see all available agents
- Agents and commands are profile-specific
- Node.js 18+ (for frontend)
- Python 3.11+ (for backend)
# Launch both frontend and backend with one command
./launch-app.sh
# Launch without running tests (faster startup)
./launch-app.sh --skip-tests
# Check if app is running and view URLs
./status-app.sh
# Stop all servers
./stop-app.shThe launch script will:
- β Install dependencies if needed
- β
Run all tests (frontend + backend) - optional, use
--skip-teststo skip - β Start backend at http://127.0.0.1:8000
- β Start frontend at http://localhost:5173
- β Verify all endpoints are working
- β Show app URLs and status
- β Optionally show live logs
- β Stop both servers with Ctrl+C
# Install dependencies
npm install
# Start development server
npm run dev
# Opens at http://localhost:5173# Create and activate virtual environment
python3 -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
# Install dependencies
pip install -r backend/requirements.txt
# Start Flask server
python backend/app.py
# Runs at http://localhost:8000# Run once
npm test
# Watch mode (TDD)
npm run test:watch
# Coverage report
npm run test:coverage# Activate virtual environment first
source venv/bin/activate
# Run tests
pytest tests/backend/
# With coverage
pytest --cov=backend tests/backend/npm run test:e2eRed-Green-Refactor:
-
Write failing test (RED):
npm run test:watch # Keep running # Edit tests/components/MyComponent.test.jsx # See test FAIL β
-
Implement code (GREEN):
# Edit src/components/MyComponent.jsx # See test PASS β
-
Refactor (REFACTOR):
# Improve code quality # Tests still PASS β
MONOPOLY_GAME_APP/
βββ .claude/ # Claude Code configuration
β βββ agents/ # Agent definitions
β βββ commands/ # Slash commands
β βββ templates/ # Project templates
β βββ config.yml # Profile configuration
βββ src/ # Frontend source
β βββ components/ # React components
β βββ utils/ # Frontend utilities
β βββ assets/ # Images, styles
βββ tests/ # Frontend tests
β βββ components/ # Component tests
β βββ integration/ # Integration tests
β βββ e2e/ # End-to-end tests
βββ backend/ # Backend source
β βββ api/
β β βββ routes/ # API routes
β βββ models/ # Data models
β βββ utils/ # Backend utilities
βββ tests/backend/ # Backend tests
β βββ unit/ # Unit tests
β βββ integration/ # Integration tests
βββ .agent-tokens/ # Agent orchestration
βββ verify-workspace.sh # Workspace verification
βββ AGENT_WORKFLOW.md # Agent workflow guide
For multi-agent development, see .agent-tokens/AGENT_WORKFLOW.md
Recommended order:
- Backend Development (
@app-backend-developer) - Frontend Development (
@app-frontend-developer) - Full-Stack Integration (
@app-full-stack) - Documentation (
@app-spec-writer)
| Task | Command |
|---|---|
| Quick launch | ./launch-app.sh |
| Check status | ./status-app.sh |
| Stop all servers | ./stop-app.sh |
| Frontend dev | npm run dev |
| Backend dev | python backend/app.py |
| Frontend tests | npm test |
| Backend tests | pytest tests/backend/ |
| E2E tests | npm run test:e2e |
| Build | npm run build |
| Lint | npm run lint |
- Semantic HTML (
<nav>,<main>,<button>,<article>) - ARIA attributes for dynamic content
- Full keyboard navigation support
- Sufficient color contrast (WCAG AA)
- Alt text for all images
- Screen reader compatible
-
Start the app:
# Quick start (recommended) ./launch-app.sh # Check if it's running ./status-app.sh # Or manually in separate terminals: # Terminal 1: Frontend npm run dev # Terminal 2: Backend python backend/app.py
-
Start TDD workflow:
# Terminal 3: Frontend tests (watch mode) npm run test:watch -
Build features:
- β Dice input component (2 regular + 1 special)
- β Dice animation component
- β Rules display component
- β Game logic with 7 Mega Monopoly rule categories
- β Detailed Speed Die rules (Bus, Mr. Monopoly, Question Mark)
- β Integration between frontend and backend
-
Stop the app:
# Quick stop ./stop-app.sh # Or press Ctrl+C in terminal running ./launch-app.sh
Built with TDD - Test First, Ship with Confidence! π
Status: Environment ready for development β