Seed Development Data
The seed command populates your local database with sample users, presets, and content.
Run the Seed
make dev-seed
Or directly:
make build
./bin/weos seed
What Gets Created
- Users:
admin@weos.devwith the “admin” rolemember@weos.devwith the “member” role
-
Presets: The
taskspreset (Project and Task types) - Sample Data:
- 2 projects: “WeOS Development”, “Marketing Site”
- 4 tasks with varying status and priority:
- “Set up CI pipeline” (done, high)
- “Add resource permissions API” (in-progress, high)
- “Design landing page” (open, medium)
- “Write blog post” (open, low)
- Authorization policies for the admin role
Manifest File
The seed writes a .dev-seed.json manifest containing IDs of all created entities. This file is gitignored.
Idempotent
The seed is safe to run multiple times. It uses FindOrCreateAgent for users, so existing users won’t be duplicated.
Full Dev Setup
To seed and immediately start the server:
make dev-setup
This runs dev-seed then dev-serve (server with OAuth disabled).
Clean and Reseed
make dev-clean # removes weos.db, .dev-seed.json, bin/
make dev-setup # rebuild, reseed, serve