761 B
761 B
Northstar CRM example
A complete WrNexus example covering public pages, SQLite migrations and seed data, SQL-backed signup/login/session authentication, database-backed roles and permissions, protected pages, and permission-checked CRM APIs.
bun run db:migrate
bun run db:seed
bun run dev
Open /signup, create an account, and the signup hook assigns the sales-rep role. The user is automatically signed in and redirected to /dashboard. Auth tables come from the @wrnexus/auth plugin migrations; CRM and authorization tables come from app/db/migrations/001_crm.sql.
The seed records use the placeholder owner demo-owner to demonstrate repeatable data. To attach them to a registered user, update their owner_id to that user's ID.