Feature 08 · Study guide
Generate and run a Vite + React admin UI that matches your schema models.
$ tpy serve # API on :8000 $ tpy admin # writes admin/ $ cd admin $ npm install $ npm run dev # UI on :5173
The wizard asks for the API base URL (default http://127.0.0.1:8000). From v0.1.10, pass --template <name> or place admin-theme.json in the project root to set title, accent color, and landing model.
tpy admin reads schema.tpy.admin/src/data/models.js (model registry).| Path | Role |
|---|---|
admin/src/data/models.js | Schema-driven registry |
admin/src/components/ | Layout, DataTable, RecordForm |
admin/src/pages/ | Generic list/form pages |
$ tpy crud $ tpy admin # refresh UI registry $ tpy migrate
tpy auth, only super-admin and developer roles can use the dashboard login gate.