Professional local-first compliance inspector UI and mock services.
BuildCheck is a Vite + React 19 + TypeScript application designed as a lightweight, offline-friendly inspection and compliance dashboard. It includes a local mock authentication and database (no external setup required) for rapid demos and development.
Key features
- Modern React 19 app using Vite
- Local mock auth and DB for quick development (
mockAuth,mockDb) - Pages: Dashboard, Inspection Detail, Regulations, Reports, Auth
- Developer-friendly tooling: TypeScript, Tailwind, Lucide icons, Motion
buildcheck_-automated-building-complience/src/– main app sourcecomponents/– UI componentspages/– page routes (Auth,Dashboard,InspectionDetail,Regulations,Reports)services/–localService.tsmock DB + auth,analysisService.tscontext/– app contexts (theme)lib/– utilities
types.ts– shared types used across root and nested apptsconfig.json,vite.config.ts,package.json– project config
Requirements
- Node.js LTS (recommended >= 18)
- npm (or pnpm/yarn) installed
Install dependencies:
cd /path/to/BuildCheck
npm installRun development server:
npm run dev
# Open http://localhost:5173Build for production:
npm run build
# Preview build
npm run previewType-check (lint):
npm run lint
# (runs `tsc --noEmit`)vite.config.ts reads ANALYSIS_ENGINE_KEY (used by analysisService). For local development you can leave it empty; to configure a real analysis engine, create a .env file at the repo root:
ANALYSIS_ENGINE_KEY=your_key_here
buildcheck_-automated-building-complience/src/services/localService.tsmockAuthexposessignIn,signUp,signOut,onAuthStateChanged, andcurrentUserstored inlocalStorage.mockDbexposesgetInspections,saveInspection,getRegulations,getReports,saveReport,deleteReportand stores data inlocalStoragekeys for persistence in the browser.
Reset mock data in the browser by clearing the localStorage keys:
localStorage.removeItem('buildcheck_inspections')
localStorage.removeItem('buildcheck_current_user')
localStorage.removeItem('buildcheck_reports')
// etc.npm run dev— start Vite dev servernpm run build— produce production buildnpm run preview— preview built appnpm run lint— runtsc --noEmitto type-check
- TypeScript and Vite configuration use modern module settings. If you see module resolution complaints, ensure your local
node/npmversions are up to date. - If TypeScript complains about JSX or default imports, ensure
tsconfig.jsoncontainsjsx: "react-jsx"andesModuleInterop: true. - If you ever need to re-generate initial demo inspections/regulations, delete the corresponding
localStoragekeys and reload the app.
- buildcheck_-automated-building-complience/src/pages/Auth.tsx
- buildcheck_-automated-building-complience/src/services/localService.ts
- types.ts
- tsconfig.json
- vite.config.ts
- Keep type-safety: run
npm run lintbefore committing. - Use small, focused commits; descriptive commit messages are recommended.
If you'd like I can:
- Start the dev server and open the app in a browser
- Add a CI workflow to run
npm run lintandnpm run buildautomatically on push - Add end-to-end tests or Storybook for components
Generated on 2026-07-11 — if you'd like the README tailored with screenshots or more architecture diagrams, tell me where you'd like them included.