@mohasetif/formbuilder.io
v1.1.1
Published
FormBuilder.io is a CLI tool designed to generate HTML, React, Vue, and Svelte forms from Prisma models. The tool scans your project for Prisma schema files, allows you to select a model, and then generates a form based on the attributes of that model.
Downloads
1
Readme
FormBuilder.io
FormBuilder.io is a CLI tool designed to generate HTML, React, Vue, and Svelte forms from Prisma models. The tool scans your project for Prisma schema files, allows you to select a model, and then generates a form based on the attributes of that model.
Features
- Automatically scans for Prisma schema files in your project.
- Supports form generation for HTML, React (JavaScript and TypeScript), Vue, and Svelte.
- Generates input fields based on Prisma model attributes.
- Ignores creation and update timestamp fields (e.g.,
createdAt
andupdatedAt
).
Installation
You can install FormBuilder.io:
npm i @mohasetif/formbuilder.io
Usage
1- Before you run the following command, make sure you placed your prisma schemas in a prisma folder:
npx @mohasetif/formbuilder.io
2- Follow the prompts:
- Choose a Prisma schema file.
- Select a model from the chosen schema.
- Enter the destination file name for the generated form.
- Choose the development framework (HTML, React, Vue, or Svelte).
3- The generated form will be saved to the specified destination.