HenniOKF
Documentation

Guide

Setup

From the clone to the first admin on your own computer: dependencies, .env.local, check, start.

What it is about

At the end the application runs on your computer at http://localhost:3370, and you are signed in as the first admin. The requirements are under Requirements.

Step 1: dependencies

In the root of the project:

npm ci

npm ci installs exactly what package-lock.json lists. Do not delete the lock file: a fresh npm install without it fails on the entry overrides, see Troubleshooting.

Step 2: .env.local

cp .env.example .env.local

Next.js reads .env.local at start; it stays untracked. Set at least:

VariableValue in development
HENNIOKF_ROOT./.data, as .env.example already says
HENNIOKF_SYNC_TOKENyour own random word from openssl rand -hex 32 instead of the placeholder

All variables are explained under Environment variables.

Step 3: check

npm run check

Prettier, ESLint, types and Vitest, in this order. If everything is green, the state is right.

Step 4: start

npm run dev

At start the application creates .data/users/ with the accounts database. Open http://localhost:3370. The start page and the documentation answer at once; every other page leads to /sign-in.

In the Claude app there is the preview henniokf from .claude/launch.json for this.

Step 5: the first admin

On /sign-in enter the token from .env.local, your name, a username and a password of at least 10 characters, then choose Create and sign in. Details under The first admin.

Afterwards /status shows your root directory under "Configuration" and "Accounts: yes, 1".

Reset

The development data lies only under .data/. To start over, stop the server and delete the directory. At the next start the application creates it anew, and the first admin is missing again.

rm -rf .data

Next: Environment variables.