-
Notifications
You must be signed in to change notification settings - Fork 0
Local Development Setup
Setting up PulseBoard for local development is fully structured around Firebase Emulators to ensure zero external hosting costs and offline capability.
Verify you are using Node.js 18+ or 20+, and run:
npm installCreate a .env.local file in the root directory. You can copy the values from .env.example:
cp .env.example .env.localFor purely local emulation, ensure this toggle is set to true:
NEXT_PUBLIC_USE_FIREBASE_EMULATORS=trueStart the Firebase Emulator Suite (Auth + Firestore) along with the Next.js development server:
npm run devThe app will be accessible at http://localhost:3000. The Firebase Emulator UI dashboard will be available at http://localhost:4000.
To test the application with pre-populated workspaces, monitors, response times, and historic incident logs, run:
# While the dev server is running
curl http://localhost:3000/api/demo/seedThis inserts high-fidelity mock data into your local emulator so you can immediately see graph rendering, status filters, and timeline listings.
PulseBoard includes a comprehensive test suite of 20 automated tests validating UI features, auth locks, and API responses.
# Run tests in headless mode
npm run test:e2e
# Run tests with the visual UI browser
npm run test:e2e:uiNote: Make sure your dev server is active at http://localhost:3000 before running the test commands.