daypress
admin route/setup
doc versionv1.0.4
reading time4 min read
section group02 · Getting Started
Docs/Getting Started
/setup4 min readv1.0.4

First-Time Setup Wizard (/setup) & Headless Provisioning

Daypress never boots with an insecure default admin/admin credential. Until an administrator exists in SQLite, all admin routes redirect to the 4-step /setup wizard.

Walking through the 4-step browser wizard

  1. Step 1 — Account & Site Identity: Enter your Website Name (blogname), Short Tagline (blogdescription), Admin Username, Email, and a strong password (minimum 8 characters, hashed locally with memory-hard Argon2id).
  2. Step 2 — Starting Path: Choose whether to seed designed starter content (starter), open an empty canvas for an AI builder (blank), or jump straight into WordPress import (migrate).
  3. Step 3 — Visual Atmosphere: Pick one of the three dual-palette editorial presets (Daypress Daylight, Daypress Modern, or Daypress Night), typography scale (serif or sans), and primary brand accent hex.
  4. Step 4 — Network & Launch: Confirm localhost-only vs. LAN binding and enter /d-admin/getting-started.
http://localhost:8090/setup — 4-Step First-Time Onboarding Wizard
Daypress first-time browser onboarding wizard showing Step 1 Account and Site setup with Argon2id password generator
Visiting /setup on a fresh SQLite database walks through site identity, Argon2id credentials, starting path, and theme atmosphere.

Comparing Starter, Blank & Migrate modes

ModeWhat Daypress Provisions in SQLiteWhen to Choose It
starterDesigned DayStudio front page, sample blog post + comment, and primary navigation menu.Exploring Daypress locally or starting from a ready-to-edit editorial layout.
blankClean empty front page with zero sample posts or placeholder comments.Recommended when an AI assistant (Claude Code, Cursor, Antigravity) will build your site via MCP.
migrateClean database and immediate redirect to /d-admin/import.Importing a WordPress .json migration bundle or WXR .xml export.

Automating setup in Docker, Terraform & CI

For non-interactive deployments, either pass DAYPRESS_ADMIN_PASSWORD on startup or submit a single URL-encoded POST /setup request:

bash
curl -sS -X POST http://127.0.0.1:8090/setup \
  -H "Content-Type: application/x-www-form-urlencoded" \
  --data-urlencode "site_title=Acme Studio" \
  --data-urlencode "tagline=Industrial Design & Engineering" \
  --data-urlencode "username=admin" \
  --data-urlencode "email=ops@acme.example" \
  --data-urlencode "password=SuperStrongPass2026!" \
  --data-urlencode "confirm_password=SuperStrongPass2026!" \
  --data-urlencode "starter_mode=blank" \
  --data-urlencode "theme=Daypress Daylight" \
  --data-urlencode "typography_scale=serif" \
  --data-urlencode "brand_color=#a8401b"
One-Time Lock: Once at least one administrator row exists in users, POST /setup is permanently locked and returns a redirect to /login.