example

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2026 License: MIT Imports: 17 Imported by: 0

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
db
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).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL