Setup
This page describes how to run the documentation site and how to reference the ILS application repository without changing it.
ILS-doc local preview
The docs site is hosted separately from the application code.
cd C:\Users\0102663\Projects\bim\ILS-doc
python -m pip install mkdocs mkdocs-material
mkdocs serve --dev-addr 127.0.0.1:8000
- Use
mkdocs serveto preview documentation changes live in the browser. - Use
mkdocs buildto verify that the site compiles correctly. - Keep all documentation changes inside
ILS-doc.
ILS-doc environment
This repo does not require the ILS application to build the documentation.
It is safe to run mkdocs from ILS-doc without starting the backend or frontend.
If you are working with documentation only:
cd C:\Users\0102663\Projects\bim\ILS-docmkdocs serve --dev-addr 127.0.0.1:8000- edit docs under
docs/ - update
mkdocs.ymlwhen adding pages or sections
ILS-dev application reference setup
The application repo is C:\Users\0102663\Projects\bim\ILS-dev.
The main app is split into two folders:
backend— Node.js API serverfrontend— React + Vite web client
Backend workbench
cd C:\Users\0102663\Projects\bim\ILS-dev\backend
npm install
npm run create-db
npm run dev
Key backend scripts:
npm run dev— start the backend with live reloadnpm run create-db— create the local database and run migrationsnpm run test:reporting— run backend reporting and outcome-related testsnpm run seed:heatmap-realism— seed realistic heatmap data for demo scenariosnpm run check:no-hardcoded-db— verify no hardcoded DB names existnpm run backfill:outcome-snapshots— regenerate outcome snapshot history
The backend uses DATABASE_URL from ILS-dev/backend/.env to connect to PostgreSQL.
Do not hardcode database connection strings in application files.
Frontend workbench
cd C:\Users\0102663\Projects\bim\ILS-dev\frontend
npm install
npm run dev
Key frontend scripts:
npm run dev— start the React app with Vitenpm run build— create a production buildnpm run preview— preview the production build locallynpm run test:playwright— run end-to-end Playwright tests
The frontend uses VITE_API_URL to determine the backend API base URL.
When running locally, the frontend usually proxies /api requests to http://localhost:4000.
Environment guidance
ILS-docis the only repo you should edit for documentation updates.ILS-devis the application repo and should only be read as source material for facts.- Keep
ILS-doccontent aligned with realILS-devbehavior and avoid speculative documentation.
Important boundary rule
ILS-docis the documentation repo and is the only repo you should edit for doc changes.ILS-devis the application repo and should only be read for feature discovery.- Do not commit or modify any application files in
ILS-devunless specifically requested.
Documentation workflow
- Add new docs pages under
docs/developer,docs/concepts,docs/teacher,docs/admin,docs/student, ordocs/management. - Update
mkdocs.ymlnavigation when new pages are added. - Keep guide content focused on what the system does and why it matters for each user role.
- Link architecture and terminology back to the actual app pages and route groups in
ILS-dev. - Run
mkdocs buildafter each major content update to catch formatting or Markdown issues.
Tracking and planning
- Active documentation work is tracked in GitHub Project 5 (
project5.json). - Use the project board to keep priority work visible and aligned with the current documentation plan.
- The highest priority is Developer Guide content, followed by Teacher, Admin, Student, and Management guides.
Last updated: 2026-07-08