Codapult
ЦеныПлагиныБлогДокументацияДемо
Logo

SaaS-бойлерплейт для разработчиков

© 2026 Codapult. Все права защищены.

Сделано на Codapult

Проект

  • Цены
  • Плагины
  • Блог
  • Документация

Альтернативы

  • Сравнение SaaS-шаблонов
  • Codapult vs Supastarter
  • Codapult vs Makerkit
  • Codapult vs ShipFast
  • Codapult vs SaaSBold
  • Codapult vs Gravity
  • Codapult vs Nextbase
  • Codapult vs BuilderKit

О нас

  • Контакты

Правовая информация

  • Политика конфиденциальности
  • Условия использования
Все статьи

Getting Started

  • Introduction
  • Quick Start
  • Project Structure
  • License and Permitted Use

Configuration

  • Environment Variables
  • App Configuration

Authentication

  • Authentication
  • OAuth Providers
  • Two-Factor & Passwordless
  • Enterprise SSO (SAML)

Database

  • Database
  • Migrations

Teams

  • Teams & Organizations
  • Permissions & RBAC
  • SCIM Provisioning

Payments

  • Payments & Billing
  • Stripe Setup
  • LemonSqueezy Setup
  • Polar Setup
  • Payment Webhooks

Api

  • API Layer
  • tRPC
  • GraphQL

Ai

  • AI Features
  • Streaming Chat
  • RAG and Semantic Search
  • Quotas and Memory

Email

  • Email
  • Email Templates

Infrastructure

  • Infrastructure
  • Self-Hosting
  • File Storage
  • Docker
  • Background Jobs
  • Terraform & Pulumi
  • Kubernetes

Ui

  • UI & Theming

I18n

  • Internationalization

Content Management

  • Content Management

Admin

  • Admin Panel

Security

  • Security

Monitoring

  • Analytics & Monitoring

Modules

  • Module Architecture
  • Waitlist
  • Audit Log
  • White-Labeling
  • Workflow Automation
  • A/B Testing
  • Welcome Page
  • Referrals
  • GDPR Export and Deletion
  • Outgoing Webhooks

Plugins

  • Plugin System
  • AI Kit Plugin
  • CRM Plugin
  • Helpdesk Plugin
  • Email Marketing Plugin

Deployment

  • Deployment
  • Troubleshooting

Upgrading

  • Upgrading Codapult

Developer Tools

  • AI Agents & IDEs
  • MCP Server
  • Testing
Getting Started

Quick Start

Install Codapult, configure environment variables, run the Next.js SaaS boilerplate locally, and verify auth, payments, database, and dashboard setup.

Prerequisites

  • Node.js 20 or later
  • pnpm — install via corepack enable && corepack prepare pnpm@latest --activate
  • A database — local SQLite (file:local.db) is enough for development; use PostgreSQL or Turso for hosted environments

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 variables for the default adapters:

VariableValue
TURSO_DATABASE_URLYour Turso database URL (e.g. libsql://my-db-org.turso.io) or file:local.db for a local file
BETTER_AUTH_SECRETGenerate with openssl rand -base64 32 (must be ≥32 characters)
STRIPE_SECRET_KEYStripe secret key from the Stripe dashboard (use test key for development)

TURSO_AUTH_TOKEN is also required when using Turso cloud (not needed for file:local.db). All other variables are optional and documented in .env.example.

Tip: To skip auth and payments setup, set AUTH_PROVIDER=none — only TURSO_DATABASE_URL is required. This runs Codapult in showcase/marketing mode.

If you prefer PostgreSQL

Turso is the default because local setup is fast and a SQLite file works without external services. If your team prefers PostgreSQL, switch the database provider in .env.local:

DB_PROVIDER="postgres"
DATABASE_URL="postgresql://user:password@host:5432/dbname?sslmode=require"

When DB_PROVIDER=postgres, pnpm db:* commands use the PostgreSQL Drizzle schema and connection string automatically. Keep TURSO_DATABASE_URL only if you plan to switch back to the default Turso/LibSQL provider.

Database Setup

Push the schema to your configured 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.

Important: The setup wizard makes permanent changes to the codebase. Removed modules are deleted — routes, components, schema tables, and imports. Re-adding a module later requires manual work from the Codapult source repository. Run the wizard before writing any custom code.

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
  • Payments & Billing — set up subscription tiers and billing
  • Customization — theming, branding, and white-label options
IntroductionProject Structure