Initialization

Run the zopio init command:

Terminal
npx zopio@latest init

You will be prompted for the project name and package manager.

Terminal
$ npx zopio@latest init

  Let's start a `zopio` project!

◇  What is your project named?
│  my-app

◇  Which package manager would you like to use?
│  pnpm

◇  Project initialized successfully!

└  Please make sure you install the Mintlify CLI and Stripe CLI before starting the project.

This will create a new directory with your project name and clone the repo into it. It will run a setup script to install dependencies and copy .env files. You can read more about environment variables here.

Database

You will need to scaffold the database using the schema defined in packages/database/prisma/schema.prisma:

Terminal
pnpm migrate

For more details on the default Prisma configuration (using Neon), refer to the Database Configuration Guide.

CMS

You will need to setup the CMS. Follow the instructions here, but the summary is:

  1. Fork the basehub/zopiolabs/zopio template
  2. Get your Read Token from the “Connect to Your App” page
  3. Add the BASEHUB_TOKEN to your Environment Variables

Development

Run the development server with:

Terminal
pnpm dev

Open the localhost URLs with the relevant ports listed above to see the app, e.g.

For additional tools:

You can start any of the above tools independently with
Terminal
 `pnpm run dev --filter <tool-name>`