EcoTrack Docs

Project Documentation

Documentation is organized by document type and responsibility so architecture, API docs, setup guides, reference material, roadmaps, plans, tasks, runbooks, and checklists are easy to distinguish.

Start Here

Architecture

API And Product

Environment Reference

Setup Guides

Planning

Governance And Standards

Data And Operations

Specs And Inputs

Historical Baselines

Root Command Cheat Sheet

Install:

npm ci --include=dev

Develop:

npm run dev
npm run dev:doctor
npm run dev --workspace=ecotrack-app
npm run dev:mobile
npm run dev --workspace=ecotrack-api

Cleanup:

npm run clean:artifacts

Validate:

npm run lint
npm run lint --workspace=ecotrack-mobile
npm run typecheck
npm run typecheck --workspace=ecotrack-mobile
npm run test
npm run test --workspace=ecotrack-mobile
npm run validate-doc-sync
npm run validate-sonar-coverage-alignment
npm run test:api
npm run test:e2e
npm run test:coverage
npm run test:coverage:api
npm run quality:mobile-readiness
npm run quality:product-hardening
npm run validate-env:all
npm run validate:workspace-toolchain
npm run validate-specs
node infrastructure/scripts/ci/generate-cdc-summary.mjs
npm run ci:release:manifest
npm run ci:release:quality-scorecard
npm run ci:release:deploy-hooks
npm run ci:release:smoke
npm run ci:quality:k6
node infrastructure/scripts/ci/run-mutation-gate.mjs
node infrastructure/scripts/ci/run-visual-gate.mjs
node infrastructure/scripts/ci/run-visual-snapshots.mjs
node infrastructure/scripts/ci/run-lighthouse-gate.mjs

Build:

npm run build
npm run build --workspace=ecotrack-app

Frontend bundle budgets are enforced during ecotrack-app builds via app/scripts/check-bundle-size.mjs. Use the route-aware budget overrides ECOTRACK_INITIAL_ROUTE_SHELL_GZIP_BUDGET_KB, ECOTRACK_LANDING_ROUTE_GZIP_BUDGET_KB, ECOTRACK_LOGIN_ROUTE_GZIP_BUDGET_KB, ECOTRACK_DASHBOARD_ROUTE_GZIP_BUDGET_KB, ECOTRACK_ADMIN_ROUTE_GZIP_BUDGET_KB, ECOTRACK_MAPPING_VENDOR_GZIP_BUDGET_KB, and ECOTRACK_LOGO_BUDGET_KB when CI or local runs need non-default caps. UI theme contract checks are enforced during ecotrack-app lint via app/scripts/validate-theme-contract.mjs. Doc-sync checks are enforced via npm run validate-doc-sync and the managed local pre-commit hook that repo-root installs generate under .githooks/ through the root prepare script. .githooks/ is ignored and remains local-only.

Database:

npm run db:generate
npm run db:migrate
npm run db:seed
npm run db:migrate:seed

Infrastructure:

npm run hooks:install
npm run infra:up
npm run infra:health
npm run smoke-test
npm run infra:down

Maintenance Rules