Details
Technical description of the Nipah simulation web tool, stack, exports, and deployment.
Nipah simulation web tool
The Nipah simulation is implemented as an interactive, browser-based decision-support dashboard. Users enter population, infection, environmental and intervention parameters; the application computes trajectories and key indicators and visualizes outputs as epidemic curves.
Development environment & tools
- Visual Studio Code — IDE for PHP/HTML/CSS/JS.
- XAMPP / Apache + PHP — local server for testing .php pages.
- Browser dev tools — JS debugging, DOM inspection, performance profiling.
Languages & frameworks
- PHP — serving pages/headers/footers.
- HTML + CSS — layout and styling.
- JavaScript — simulation engine, indicators, charts, exports.
- Tailwind CSS (CDN) — responsive UI cards/grids/typography.
- Chart.js — plotting curves on canvas (if used in your simulation).
- MathJax — rendering equations in Overview.
Implementation steps (end-to-end)
- UI + parameter entry: card-based input panel + validation + help bubbles.
- Simulation engine: client-side iterative update; re-run on input change; no page reloads.
- Derived indicators: peak/day, attack rate, duration (extend with R₀/HIT if defined).
- Visualization: Chart.js renders time series; synchronized with export arrays.
- Exports: results CSV, parameters CSV, chart+summary PNG, printable HTML report.
Deployment (practical)
- Upload
nipha_simulation.php+ assets to web directory. - Ensure CDN dependencies load (Tailwind/MathJax/Chart.js if used) or host local copies.
- Verify routing from portal to Nipah docs and simulation pages.
- Test downloads (CSV/PNG/HTML) on the live domain in multiple browsers.