Skip to content

nfpocket/np-crud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

np-crud

np-crud is a CLI tool to create CRUD endpoints for a Nuxt.js and Prisma project.

Installation

To install the dependencies, run:

npm install -g

Usage

To start the CLI, run:

np-crud

The CLI will prompt you to enter the model name, select the CRUD operations to create, and specify the path for the new model-CRUD.

Prompts

  1. Model Name: Enter the name of the model for which you want to create CRUD endpoints.
  2. CRUD Operations: Select the CRUD operations you want to create. The options are:
    • Get all records
    • Create a new record
    • Delete a record
    • Get a record by ID
    • Update a record
  3. Path: Enter the path where the new model-CRUD files should be created. The default path is /server/api.

Example

npm start

Follow the prompts to generate the desired CRUD endpoints.

Dependencies

License

This project is licensed under the ISC License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published