Skip to content

Installation

  • Node.js v20 or higher
  • pnpm (recommended) or npm/yarn
  • A code editor with TypeScript support (VS Code recommended)

The fastest way to start is with create-velox-app:

Terminal window
npx create-velox-app my-app
cd my-app

If you’re using pnpm (recommended), you’ll need to approve native module compilation for packages like esbuild, bcrypt, and prisma:

Terminal window
pnpm approve-builds

Select the packages to approve when prompted. This is a one-time setup per project.

The scaffolder will prompt you to choose:

  • Template: default, auth, trpc, rsc, or rsc-auth
  • Package manager: pnpm, npm, or yarn
  • Database: SQLite (default) or PostgreSQL
TemplateUse Case
defaultREST API with basic CRUD
--authJWT authentication, guards, policies
--trpctRPC-only (no REST adapter)
--rscReact Server Components with Vinxi
--rsc-authRSC + JWT authentication
Terminal window
# Explicit template selection
npx create-velox-app my-app --auth
npx create-velox-app my-app --rsc

After creating your project:

Terminal window
# Push schema to database
pnpm db:push
# Generate Prisma client
pnpm db:generate
Terminal window
pnpm dev

Your API is now running at http://localhost:3030.

Test it:

Terminal window
curl http://localhost:3030/api/health
# {"status":"ok","timestamp":"..."}