Nexquik is a CLI tool to auto-generate Next.js full CRUD server components & server actions from a Prisma schema.
Nexquik reads your Prisma Schema and automatically creates React components and server actions for all your Prisma models.
Say goodbye to manual CRUD implementation and hello to full CRUD capabilities in seconds! This enables you to focus on building your application without spending time on repetitive tasks.
With Next.js server actions, you can harness the power of server-side logic within your React components. Reduce data transfer and supercharge your application's performance.
All you need to get started is:
- A Prisma Schema
- A Next.js project
- Using App Directory
- In your next config, you will need to enable server actions since they are still in Alpha
experimental: { appDir: true, serverActions: true, }
Nexquik supports the following parameters:
-schema <value>
: Path to prisma schema file (default: "./prisma/schema.prisma").-out <value>
: Path to output directory (default: "nexquikApp").-prismaImport <value>
: String to use for Prisma Import (default: "@/lib/prisma").
With defaults:
npx nexquik@latest
With params:
npx nexquik@latest -schema ./prisma/schema.prisma -out nexquikApp -prismaImport ~/server/db