JSPM

  • Created
  • Published
  • Downloads 126
  • Score
    100M100P100Q63732F
  • License MIT

Generate Next.js components from your Prisma Schema

Package Exports

  • nexquik
  • nexquik/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nexquik) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

nexquik npm npm License Build / Publish

Nexquik is a CLI tool to auto-generate Next.js full CRUD server components & server actions from a Prisma schema.

Description

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.

Usage

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

Examples

With defaults:

npx nexquik@latest

With params:

npx nexquik@latest -schema ./prisma/schema.prisma -out nexquikApp -prismaImport ~/server/db

asdf

Contributors

A table of avatars from the project's contributors