Skip to content

First-run setup

The setup wizard creates the first admin account and the basic System settings of a new install. It opens the first time you visit PUBLIC_URL, at /setup/, and the sign-in page sends you there until it is done. You need the SETUP_TOKEN from the server's .env; see Install with Docker.

The setup wizard's General step, with the step counter and progress bar below the card

The wizard has eight steps; the line under the card shows where you are, such as "Step 3 of 8". Click Next to go on and Back to return to the step before. Nothing is saved until you click Finish on the last step: until then your answers stay in this browser.

It runs only once

The wizard is open only while no account exists. Once Finish has created the first admin, every wizard page answers "not found". Change these settings later in System settings.

Setup token verification

This step proves you are the person who installed JAI Tool.

  1. Type the SETUP_TOKEN value from .env into Setup token.
  2. Click Next.

A wrong token shows "Wrong setup token". If .env has no SETUP_TOKEN, the step says "SETUP_TOKEN was not found in .env. Can not verify identity." and you cannot go on. Add a token of 16 or more characters to .env, run docker compose up -d, and reload the page.

Once setup is done, nothing asks for the token again, so you may remove it from .env.

First admin account

This step creates your own account, with the Admin role.

Field What it does
Email* The address you sign in with. The Email step's test email goes here too.
First name* Up to 150 characters.
Last name* Up to 150 characters.
Password* At least 8 characters, not a common password, and not only digits.
Repeat password* The same password again. If they differ, the step says "The two passwords do not match."

The password is stored only in scrambled (hashed) form from this step on. When you come back to this step, your email and names are still filled in, but you type the password again.

General

This step sets how JAI Tool shows dates, numbers and prices, and names your first warehouse.

Field What it does
Time zone The zone every date and time is shown in, and the schedules below run in. You can type to search the list; each zone shows its current UTC offset. Default: TIME_ZONE from .env, or UTC.
Date format How dates are shown: 2026-12-31 (default), 2026-31-12, 31.12.2026, 31/12/2026, 12.31.2026, 12/31/2026 or 31 Dec 2026.
Time format How times are shown: 14:30 (default), 14:30:15, 2:30 PM or 2:30:15 PM.
Decimal separator How decimal numbers are shown: 0.5 (default) or 0,5.
Price decimals How many decimals prices are rounded to, from 1 (none) to 1.1234 (four). Default: 1.12.
Currency symbol* Shown with every price. Up to 8 characters. Default: €.
Default VAT rate (%) The rate filled in when you add VAT to an invoice. From 0 to 100; may be empty. Default: 23.
First warehouse* The name of your first warehouse location, which becomes the default location for new items. It cannot be an email address. Default: Default warehouse.
Enable location maps Shows a location's address or coordinates on a map, on its Stock & Map tab. Default: on.
Enable update check JAI Tool asks GitHub for its latest release and shows admins Update available on the Overview when a newer one is out. Default: on.

JAI Tool creates a location named "Default warehouse" on its first start. The wizard renames it to the First warehouse name you type. If a location of that name already exists, the wizard uses that one instead.

Security

This step sets the sign-in rules for everyone.

Field What it does
Limit QR sign-in session A phone signed in by scanning an Open on phone QR code is signed out after the time below, however much it is used. Off (default): it stays signed in for 30 days, renewed while it is used. See Phone app.
Sign out after* Shown when the switch above is on: a number from 1 to 365, in hours or days. Default: 24 hours.
Two-factor authentication Off (default), Optional or Required.

What the Two-factor authentication choices mean:

  • Off: nobody is asked for a code.
  • Optional: each person may turn it on with Add 2FA on the Security tab of their User settings; those who did enter a code at every sign-in.
  • Required: everyone enters a code at every sign-in, and anyone who has not set it up does so at their next sign-in. That includes you, right after Finish.

The codes come from an authenticator app on a phone; see Signing in.

Backups

This step sets the automatic backups. A backup holds the database and every uploaded file, encrypted with BACKUP_KEY.

Field What it does
Enable automatic backups Takes backups on the schedule below. Default: on.
Schedule* When backups run. The button shows the current schedule, such as "Every day at 03:00" (the default); click it to change it.
Max automatic backups* How many automatic backups to keep, from 1 to 1000. Past that, the oldest automatic one is deleted. Default: 30.

Only automatic backups count toward the maximum. Backups you make or upload yourself, and the ones taken before a restore, are never deleted automatically.

With automatic backups on, the first one runs within a minute or so of Finish; after that, they follow the schedule.

The schedule dialog

The Schedule button opens a dialog, here named Backup schedule; the cleanup and email steps use the same dialog.

  1. Under Repeat, pick one:

    • Run on, then tick the weekdays under On days.
    • Run every, then a number and day(s), week(s) or month(s), counted from the last run.
    • Set the Time.
    • Click Save, or Cancel to keep the old schedule.

Save stays greyed out while Run on has no day ticked. The button then reads, for example, "Every Mon, Thu at 03:00" or "Every 2 weeks at 03:00". A job runs at most once a day, at that time in the Time zone from the General step.

Automatic cleanup

This step sets when deleted records are removed for good. Deleting a record in JAI Tool only moves it to Restore deleted, where an admin can bring it back; see Restore deleted.

Field What it does
Enable automatic cleanup Removes deleted records for good, with their history, once they were deleted longer ago than Delete after. They can then no longer be restored. Default: on.
Schedule* When cleanup runs, set in the Cleanup schedule dialog. Default: every day at 03:00.
Delete after* A number from 1 to 365, in days, weeks or months. Default: 30 days.

A deleted record that something still in use points to is skipped, and tried again on the next run. Each run also deletes uploaded files that no record uses any more; a deleted record still keeps its files until it is removed.

Email

This step connects JAI Tool to your mail server. With email off, JAI Tool sends nothing and the sign-in page offers no Forgot password?.

Email is used for:

  • the link a new user gets to set their password, when an admin creates their account;
  • Forgot password? on the sign-in page; see Signing in;
  • the summary email: on the schedule below, each user who turned on Enable email summary in their User settings gets what their Attention tab on the Overview shows, and nothing when it is empty.
Field What it does
Enable email Turns sending on. The fields below unfold when it is on. Default: off.
Schedule* When summary emails go out, set in the Summary schedule dialog. Default: every day at 07:00.
SMTP host* Your mail server's address.
SMTP port* Its port, from 1 to 65535, usually 465 for SSL/TLS or 587 for STARTTLS.
Security SSL/TLS (default), STARTTLS, or - for none.
Username The mail server account. Leave it empty when the server needs no sign-in; the password is then ignored.
Password The mail server password. It is stored encrypted.
From address* The sender address of every email.

The fields marked * are required only when Enable email is on.

To check the settings, click Send test email. It sends a test email to the address from the First admin account step, and shows "Test email sent to ..." or "Test email failed:" followed by the reason, such as a wrong username or password.

Finish

The last step, "JAI Tool is ready :)", has the Finish button and links to the documentation, the GitHub repository and donations.

Click Finish. JAI Tool then:

  1. saves the settings from every step;
  2. names your first warehouse and makes it the default location for new items;
  3. creates your admin account;
  4. clears the wizard's answers from the browser;
  5. shows "JAI Tool is set up" and opens the sign-in page.

Sign in with the email and password from the First admin account step; see Signing in.

If Finish reports "Check the ... page:" followed by a reason, go Back to that step and correct it. "Setup has already been finished, in another window." means someone completed the wizard first: sign in with that account instead.

The System settings the wizard does not ask about, such as the Attention & Ongoing and Assemblies tabs, start with their defaults. To continue, see the first steps.