shadriz
v5.0.2
Published
a full stack framework next.js shadcnui and drizzle orm
Readme
shadriz
Full Stack TypeScript Scaffolding Framework
Build Next.js Apps Faster With: ✅ Ruby on Rails Inspired Scaffolding Automations ✅ shadcn/ui Inspired Customizable Components ✅ Django Inspired Admin Dashboard
Quick Start
Step 1: Create new project
Start by creating a new Next.js project using create-next-app.
npx create-next-app@latest my-app --typescript --eslint --tailwind --app --no-src-dir --no-import-alias --turbopackStep 2: Run the CLI
Run the shadriz init command to setup your project.
npx shadriz@latest initStep 3: Configure project
You will be asked a few questions to configure the app:
? Which package manager do you want to use? npm
? Do you want to install latest packages or pinned packages? pinned
? Which database dialect would you like to use? sqlite
? Which primary key generation strategy would you like to use? cuid2
? Which authentication solution do you want to use? authjs
? Which auth providers would you like to use? credentials
? Do you want to add an admin dashboard with role-based authorization? yesStep 4: Project checklist
After initialization, you will be prompted to complete a few additional checklist items.
Generate the drizzle migrations:
npm run generateRun the migrations:
npm run migrateCreate a test user:
npx tsx scripts/create-user.ts [email protected] password123Grant admin role to user:
npx tsx scripts/grant-admin.ts [email protected]Step 5: Run the dev server
npm run devStep 6: Scaffold an app
npx shadriz@latest scaffold post -c title:text content:text is_draft:boolean published_at:timestampAuthor
Built by travisluong.
License
MIT
