Setup
The very first time IllusionDB starts, there are two ways to create the first administrator account:
- Use the setup page: start without further settings and fill in the setup dialog shown in the browser.
- Set environment variables: set
ADMIN_EMAILandADMIN_PASSWORDbefore starting – IllusionDB then creates the account automatically (handy for Docker and unattended installations).
The two setup options
Below username and password, the setup dialog offers two checkboxes:
| Checkbox | Default | What happens |
|---|---|---|
| Install the handbook | on | This handbook appears as its own data source “Handbuch” in the sidebar – one table per language, each with a wiki view. |
| Install demo data | off | Creates a sample agency “Brightline Studio” as its own SQLite data source “Demo” (contents below). |
Setting up with the options takes a few seconds; the page shows a loading indicator meanwhile. If one of the options fails, your account still exists and you are logged in – the page shows the message and a Continue without button.
The demo data is only offered during setup. You can remove it at any time: delete the data source “Demo” under Managing data sources (plus the groups Management, Sales, Projects, Team and Accounting, the apps, the scripts, the document templates Invoice, Offer and Payment reminder and the media library folders, if you don’t need them).
What the demo data contains
The small CRM of a digital agency as one continuous application, built with IllusionDB’s own means only – in English, dates and deadlines relative to the day of installation, so calendar, Gantt and charts show something right away. A job runs through it like this:
- Enquiry: a new enquiry (page Pipeline of the app) becomes a lead through a workflow – with a duplicate check and an owner.
- Sales: companies (prospects and clients), contacts (from a trade fair through the CSV import), leads with activities, the pipeline as Kanban.
- Offer: lines from the service catalogue (through the SQL import), the total as a rollup, the PDF from the document template Offer.
- Order: when an offer is set to Accepted, a hook creates the project with tasks and milestones from the services’ templates.
- Projects: Gantt (roadmap, schedule with dependencies), Kanban, calendar, the team as an n:m link.
- Work: the page My work of the app shows a person’s open tasks and logs time.
- Billing: monthly invoices from the time sheet; a hook fills a new draft invoice with the open hours at the current rate. Rates live in their own table that only Management and Accounting can read.
- Client room: the page Client room shows a client’s projects with their progress, milestones, invoices and contacts; milestones are approved there on the client’s behalf.
- Knowledge: the company handbook as a wiki (with a page explaining how the CRM is built), case studies as a CMS view and as the public custom endpoint
GET /api/v1/scripts/crm/case-studies. - Steering: the start page Overview of the app shows revenue, weighted pipeline, open items and hours.
All areas are pages of one app, Brightline CRM (/app/crm/, under Apps), and work with the admin account of the setup: pages that depend on a person or a client have a picker at the top right.
Plus every field type and display format, every view type, the media library with folders, SQL snippets and the app Calculator (a calculator made only of buttons and scripts). The groups Management, Sales, Projects, Team and Accounting have graded table permissions – but there are no additional user accounts, no API tokens and no webhooks – the admin account is all you need to try it out.
Environment variables for the first setup
When the first admin is created through ADMIN_EMAIL/ADMIN_PASSWORD, two variables replace the checkboxes:
| Variable | Default | Meaning |
|---|---|---|
INSTALL_MANUAL |
true |
install the handbook |
INSTALL_DEMO |
false |
install the demo data |
Both only apply to the very first start of an empty installation. Existing installations stay as they are – the handbook there is still created exactly once and not restored after being deleted.
Afterward, continue straight to The Interface at a Glance.
Securing the setup (SETUP_TOKEN)
As long as no account exists, anyone who reaches the instance in a browser can create the first administrator account. If you start the instance publicly and want to finish the setup in the browser, set SETUP_TOKEN to a secret of your choice beforehand: the setup page then asks for it, and no account is created without the correct token. Via the API it is sent as setup_token in the body or in the X-Setup-Token header. Without SETUP_TOKEN nothing changes. When using ADMIN_EMAIL/ADMIN_PASSWORD it isn’t needed – the account then already exists at startup.