@formdata/create-project

0.49.0 • Public • Published

@formdata/create-project

Create Form-Data projects with a single command.

Usage

# npm create
npm create @formdata/project@latest my-project

# or, using npx
npx @formdata/create-project my-project

# or, install globally
npm install -g @formdata/create-project
create-project my-project

Features

  • 🚀 Quick Setup: Create a new Form-Data project with a single command
  • 🔐 Authentication: Automatic login to Form-Data service
  • 🏢 Workspace Selection: Select which workspace to use for your project
  • 📁 Project Structure: Creates proper directory structure and configurations
  • 📋 Guided Setup: Interactive prompts for project setup

What This Tool Does

When you run this tool, it will:

  1. Create a new directory for your project
  2. If you're already logged in to Form-Data:
    • Display a list of workspaces to choose from
    • Allow you to log in with a different account
  3. If you're not logged in, guide you through the login process
  4. Create the form-data.config.json file with the selected workspace
  5. Create the forms folder for your form definitions
  6. Install necessary dependencies
  7. Provide instructions for next steps

Project Structure

The created project will have the following structure:

my-project/
├── package.json
├── form-data.config.json
└── forms/

Next Steps After Creation

Once your project is created, you can:

  1. Create a new form: fd form create --name my-form --template contact
  2. Edit the form in forms/my-form.fd
  3. Preview your form: fd preview --name my-form
  4. Deploy your form: fd deploy

For more detailed instructions on how to use the cli, check out @formdata/cli package.

Requirements

  • Node.js 14 or higher
  • npm 6 or higher

License

MIT

Package Sidebar

Install

npm i @formdata/create-project

Weekly Downloads

51

Version

0.49.0

License

MIT

Unpacked Size

13.1 kB

Total Files

5

Last publish

Collaborators

  • danbarshalom