MANTLEKIT
··1 min read

Getting Started

Set up your MantleKit project in 5 minutes

setupquickstartinstallation

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-XXXX

The CLI will guide you through:

  1. Project name — the directory name for your project
  2. Theme selection — choose from 5 production-ready themes
  3. Payment provider — Stripe, Lemon Squeezy, or Polar
  4. Email provider — Resend or Mailgun
  5. Feature selection — based on your tier

Environment Variables

Copy .env.example to .env.local and fill in your credentials:

cp .env.example .env.local

At 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 dev

Visit 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/)