Documentation · Get started

Get started

Try it, without a database

In a clone of the repository:

npm ci
npx tsx modules/cli.ts try --year 2023

The core and the solar module start in a Postgres in memory, compute the yield of a family home for a year and print it month by month, with what it was computed from. Nothing is kept.

Install it on your database

On an empty Supabase project with PostGIS enabled:

export NEXGEN_DB_URL='postgresql://…'
npx tsx modules/cli.ts init --dry-run
npx tsx modules/cli.ts init --packs <country code>
npx tsx modules/cli.ts doctor

init installs the core, every module and the country packs you choose; doctor checks the result. Installing in one line from npm is (next).

Explore