Installation
Prerequisites
Section titled “Prerequisites”- Node.js v20 or higher
- pnpm (recommended) or npm/yarn
- A code editor with TypeScript support (VS Code recommended)
Create a New Project
Section titled “Create a New Project”The fastest way to start is with create-velox-app:
npx create-velox-app my-appcd my-apppnpm Users: Approve Native Builds
Section titled “pnpm Users: Approve Native Builds”If you’re using pnpm (recommended), you’ll need to approve native module compilation for packages like esbuild, bcrypt, and prisma:
pnpm approve-buildsSelect the packages to approve when prompted. This is a one-time setup per project.
Scaffolder Options
Section titled “Scaffolder Options”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
Project Templates
Section titled “Project Templates”| Template | Use Case |
|---|---|
default | REST API with basic CRUD |
--auth | JWT authentication, guards, policies |
--trpc | tRPC-only (no REST adapter) |
--rsc | React Server Components with Vinxi |
--rsc-auth | RSC + JWT authentication |
# Explicit template selectionnpx create-velox-app my-app --authnpx create-velox-app my-app --rscInitialize the Database
Section titled “Initialize the Database”After creating your project:
# Push schema to databasepnpm db:push
# Generate Prisma clientpnpm db:generateStart Development
Section titled “Start Development”pnpm devYour API is now running at http://localhost:3030.
Test it:
curl http://localhost:3030/api/health# {"status":"ok","timestamp":"..."}Next Steps
Section titled “Next Steps”- Quick Start - Build your first procedure
- Project Structure - Understand the layout