Quickstart
Prerequisites
Before you start, make sure you have these installed:
- Node.js 18+ — download here
- pnpm — install with
npm install -g pnpm - Wrangler CLI — install with
npm install -g wrangler
Already have Node.js? Check your version with node -v. Flare CMS requires v18 or higher.
1. Clone the repo
git clone https://github.com/jjaimealeman/flarecms.git
cd flarecms2. Install dependencies
pnpm installnpm installyarn install3. Build the core package
The CMS backend depends on @flare-cms/core, so you need to build it first:
pnpm buildThis runs tsup in packages/core/ and produces the compiled output that the CMS package imports.
4. Set up the local database
Run D1 migrations to create the database schema locally:
cd packages/cms
pnpm run db:migrate:localThen seed an admin user:
pnpm run seed5. Set the JWT secret
Flare CMS requires a JWT_SECRET for authentication. For local development, create a .dev.vars file in packages/cms/:
echo 'JWT_SECRET=my-local-dev-secret-change-in-production' > .dev.varsNever use this secret in production. Use wrangler secret put JWT_SECRET for deployed environments.
6. Start the dev server
wrangler devVisit http://localhost:8787/admin in your browser. You should see the Flare CMS admin login page.
Log in with the credentials from the seed script and you're in.
7. Create your first content
- Click Collections in the admin sidebar
- Pick a collection (like Blog Posts)
- Click New to create an entry
- Fill in the fields and hit Save
That's it. Your content is stored in D1 and available via the REST API at /api/content/{collection-name}.
What's next?
- Installation — detailed setup for local dev and production
- Project Structure — understand the monorepo layout
- Collections — define your own content schemas
- Architecture — how Flare CMS works under the hood