Documentation Index
Fetch the complete documentation index at: https://docs.appliedaifoundation.org/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- Node.js 20 or 22 (LTS)
- Access to the Google Cloud SQL instance + a service account JSON
npm(the repo uses npm, not pnpm or yarn)
Setup
Configure
Create.env.local at the repo root with the variables documented in Environment variables. Minimum:
Run
dev script is hardcoded to port 3000 (next dev --port 3000). To run on another port — e.g. for screenshot capture — bypass the npm script:
No tests
There’s no test framework configured. CI relies onnpm run build and npm run lint to catch issues.
Project layout
Path alias
@/* maps to src/*. Imports look like:
tsconfig.json and next.config.ts.
Where to make changes
| Change | File(s) |
|---|---|
| Adjust a CII rating boundary | src/lib/utils/ciiCalculator.ts |
| Add a fuel type | src/lib/utils/fuelEUCalculator.ts |
| Add an EU country | src/lib/utils/portClassifier.ts |
| Update a regulation phase-in | Same files; usually one constant |
| Add a new report | src/lib/services/ReportExportService.ts + src/app/api/reports/... |
| Add a new dashboard view | src/app/<route>/page.tsx + client.tsx + new component in src/components/dashboard/ |