Skip to content

Installation

  • Node.js 18+ (LTS recommended)
  • npm 9+
  • Firebase CLI: npm install -g firebase-tools
  • Git
Terminal window
git clone git@github.com:manufosela/planning-game-xp.git
cd planning-game-xp
npm install

Planning Game uses environment files for different deployment targets:

FilePurpose
.env.devLocal development (emulators)
.env.prePre-production
.env.proProduction

Contact the project administrator for the environment files.

Open two terminals:

Terminal 1 — Firebase Emulators:

Terminal window
npm run emulator

This starts:

  • Firestore on port 8080
  • Realtime Database on port 9000 (with demo data)
  • Storage on port 9199
  • Emulator UI on port 4000

Terminal 2 — Dev Server:

Terminal window
npm run dev

The application is available at http://localhost:4321.

To use Planning Game with AI agents via MCP:

Terminal window
claude mcp add planning-game -e GOOGLE_APPLICATION_CREDENTIALS=/path/to/serviceAccountKey.json -- node /path/to/planning-game-xp/mcp/index.js

See the MCP Server guide for detailed configuration.

  1. Open http://localhost:4000 — Firebase Emulator UI should show loaded data
  2. Open http://localhost:4321 — Planning Game should show with a red banner: “USANDO EMULADORES LOCALES”
  3. Run tests: npm test — All tests should pass