diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..151da5c --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,85 @@ +# CLAUDE.md + +This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. + +## What is BioLab + +BioLab Parameter Explorer is a scientific web application that estimates kinetic parameters for microbial growth and substrate consumption models. Given time-series measurements of biomass (cells, g/L) and residual substrate (g/L), it runs Particle Swarm Optimization (PSO) over seven built-in kinetic models and ranks them by the Akaike Information Criterion (AIC). + +The app is packaged with Apache Cordova and targets Electron (desktop), Android, and Browser. + +## Commands + +### Tests (run from `www/`) + +```sh +cd www && node tests/demo.mjs +cd www && node tests/synthetic-search.mjs +# or both at once: +cd www && npm test +``` + +Tests use Node.js directly — no test runner or build step needed. + +### Run / build (Electron) + +```sh +cordova run electron # dev run +cordova build electron --release --verbose # release build +``` + +### Run on Android + +```sh +# Set up environment first (or source env.sh): +source env.sh +# env.sh sets ANDROID_HOME, ANDROID_SDK_ROOT, PATH entries for the SDK, +# and isolates Gradle cache to ./.gradle, then calls `cordova run android`. +``` + +### Serve in browser + +```sh +cordova run browser +# or just open www/index.html via any static file server +``` + +## Architecture + +``` +www/ + index.html — single-page app; all UI logic is an inline