NNextron Docs

Getting started

Generate, configure, and run your first Nextron application.

Before you begin

You need Node.js 20 or newer and one supported package manager: pnpm, npm, Yarn, or Bun. For database-backed modules, have a connection string ready or choose a local PostgreSQL setup.

1. Start the generator

Run the interactive CLI from the directory that should contain your project:

npx @edwinfom/nextron@latest create my-app

If you omit my-app, Nextron asks for a project name. Names may contain lowercase letters, numbers, hyphens, and underscores.

2. Choose a compatible stack

The prompts are applied in this order:

DecisionAvailable choicesWhat it controls
ORMDrizzle, Prisma, NoneDatabase client and schema workflow
DatabasePostgreSQL, SQLite, MySQL, NoneConnection format and generated configuration
PostgreSQL providerNeon, Supabase, LocalDriver and connection strategy
AuthenticationBetter Auth, Clerk, NextAuth, NoneSession APIs, routes, and middleware
Additional modulestRPC, AI, Stripe, Polar, Inngest, DashboardOptional feature packages and source files
Package managerpnpm, npm, Yarn, BunInstall command and generated instructions

The Dashboard option requires authentication and is hidden when authentication is set to None.

3. Review before generation

Nextron prints a summary before writing the application. Confirm the ORM, database, authentication provider, modules, and package manager match your intended deployment.

Choose whether to install dependencies immediately. Skipping installation is useful for inspecting the generated files first.

4. Configure the environment

Enter the generated directory and create a local environment file:

cd my-app
cp .env.example .env.local

Fill every variable marked as required. The generated src/env.ts validates the exact variables needed by your selected modules when the application starts.

5. Prepare the database

For Drizzle projects, apply the generated schema:

pnpm db:push

For Prisma projects, generate the client and push the schema:

pnpm prisma generate
pnpm prisma db push

Replace pnpm with your selected package manager.

6. Start development

pnpm dev

Open http://localhost:3000. If startup fails, read the environment validation message first—it lists missing or invalid variables by name.

Verify the result

A successful project contains nextron.config.ts, .env.example, AGENTS.md, and a src/modules directory for the selected features. Continue with Project structure to understand how the generated code fits together.

On this page