Documentation
¶
Overview ¶
Command example runs a jet-admin site over a small demo schema: customers, their orders and their API tokens.
DATABASE_URL=postgres://user:pass@localhost:5432/demo go run ./example
It creates the tables it needs (jet-admin's and the demo's), seeds a few rows, makes an admin user with a fresh password, prints it and serves the admin at http://localhost:8080/admin/.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package db is the demo's schema: schema.sql, and the Jet builders and models generated from it (go run ./scripts/jetgen -schema example/db/schema.sql -dest example/db/jet -db-tags).
|
Package db is the demo's schema: schema.sql, and the Jet builders and models generated from it (go run ./scripts/jetgen -schema example/db/schema.sql -dest example/db/jet -db-tags). |
Click to show internal directories.
Click to hide internal directories.