Codapult
FeaturesPricingAPIHelpChangelog
Codapult

Ship Your SaaS Faster

Product

  • Features
  • Pricing
  • Plugins
  • API Reference
  • Help Center
  • Feature Requests
  • Changelog

Company

  • Contact
  • GitHub

Legal

  • Privacy Policy
  • Terms of Service

© 2026 Codapult. All rights reserved.

All articles

Getting Started

  • Introduction
  • Quick Start
  • Project Structure

Configuration

  • Environment Variables
  • App Configuration

Authentication

  • Authentication

Database

  • Database

Teams

  • Teams & Organizations

Payments

  • Payments & Billing

Api

  • API Layer

Ai

  • AI Features

Email

  • Email

Infrastructure

  • Infrastructure

Ui

  • UI & Theming

I18n

  • Internationalization

Content Management

  • Content Management

Admin

  • Admin Panel

Security

  • Security

Monitoring

  • Analytics & Monitoring

Modules

  • Module Architecture

Plugins

  • Plugin System

Deployment

  • Deployment
  • Troubleshooting

Upgrading

  • Upgrading Codapult

Developer Tools

  • MCP Server
  • Testing
Getting Started

Quick Start

Install, configure, and run Codapult in under 5 minutes.

Prerequisites

  • Node.js 20 or later
  • pnpm — install via corepack enable && corepack prepare pnpm@latest --activate
  • A Turso account — sign up for free and create a database

Installation

npx create-codapult my-app
cd my-app
pnpm install

This scaffolds a fresh Codapult project with all modules included.

Configuration

Copy the example environment file and fill in the required values:

cp .env.example .env.local

At minimum, set these four variables:

VariableValue
TURSO_DATABASE_URLYour Turso database URL (e.g. libsql://my-db-org.turso.io)
TURSO_AUTH_TOKENTurso auth token from the dashboard
BETTER_AUTH_SECRETGenerate with openssl rand -base64 32
NEXT_PUBLIC_APP_URLhttp://localhost:3000 for local development

All other variables are optional and documented in .env.example.

Database Setup

Push the schema to your Turso database — this creates all tables in one step:

pnpm db:push

Optionally seed sample data (users, organizations, plans) for local testing:

pnpm db:seed

Start the Dev Server

pnpm dev

Open http://localhost:3000. You should see the Codapult landing page. Click Sign Up to create your first account.

Interactive Setup Wizard

Run the setup wizard to choose which modules to keep. It removes unused code, routes, and database tables cleanly:

npx @codapult/cli setup

The wizard walks you through each optional module (AI chat, blog, teams, notifications, etc.) and strips out anything you don't need.

Useful Commands

CommandDescription
pnpm devStart dev server (Turbopack)
pnpm buildProduction build
pnpm lintRun ESLint
pnpm formatFormat with Prettier
pnpm testRun Vitest unit tests
pnpm test:e2eRun Playwright E2E tests
pnpm db:generateGenerate Drizzle migration
pnpm db:pushPush schema to database
pnpm db:seedSeed sample data
npx @codapult/cli setupInteractive module setup wizard

Next Steps

  • Project Structure — understand the directory layout and config files
  • Authentication — configure sign-in methods, 2FA, and SSO
  • Plans & Pricing — set up subscription tiers and billing
  • Customization — theming, branding, and white-label options
IntroductionProject Structure