Skip to content

Adding Components

After initilizing a new ProofKit project, you can use the CLI to add new components and features.

The ProofKit package is installed in your project, and as a script in your package.json, so you can run the following command (as long as your current directory is your project root):

pnpm proofkit

This will prompt you with a list of available components and features to add to your project.

Adding a Page

ProofKit includes many page templates to help you build out your web app. Use this command to select one.

pnpm proofkit add page

If the template you select requires data, you may be prompted to select which data source and schema to use. (If there is only one, it will be selected by default without prompting)

Adding a Data Source

If you need to connect to a new database or FileMaker file, use this command.

pnpm proofkit add data

For FileMaker data sources, a single “Data Source” consists of:

  • A FileMaker Server
  • A FileMaker File
  • An OttoFMS API Key (representing a single account name with permission to the file)

If you need to change any one of these (i.e. to connect to a different file on the same server), you’ll want to add a new data source.

Adding Schema

When you want to interact with data from a new table or layout, you’ll need to add a schema.

pnpm proofkit add schema