Welcome to MantleKit! This guide walks you through setting up your project from scratch.
Prerequisites
- Node.js 18 or later
- A Supabase account (free tier works)
- A payment provider account (Stripe, Lemon Squeezy, or Polar)
Installation
Run the CLI with your licence key:
npx create-mantlekit --key MK-XXXX-XXXXThe CLI will guide you through:
- Project name — the directory name for your project
- Theme selection — choose from 5 production-ready themes
- Payment provider — Stripe, Lemon Squeezy, or Polar
- Email provider — Resend or Mailgun
- Feature selection — based on your tier
Environment Variables
Copy .env.example to .env.local and fill in your credentials:
cp .env.example .env.localAt minimum, you need:
- Supabase URL and anon key
- Your payment provider's API keys
- Your email provider's API key
Run the Dev Server
npm run devVisit http://localhost:3000 to see your app running.
Next Steps
- Customize your theme in
themes/[your-theme]/theme.css - Configure your pricing plans in
mantle.config.ts - Add blog content in the
content/directory - Set up your Supabase database tables (SQL files in
lib/)