Prerequisites
| Requirement | Minimum version |
|---|---|
| Node.js | 18.0.0 |
| Rust + Cargo | stable (latest recommended) |
Installing Rust
Install Rust via rustup.rs if you don’t have it yet. The installer sets up Cargo and the stable toolchain automatically.
Quick start
Run the interactive wizard with npx:
npx create-ruxum-app@latest
The wizard will ask you:
- What to scaffold — Rust API, Next.js App, or Full-stack
- Project name — used as the directory name
- Database (Rust only) — PostgreSQL, MySQL, or SQLite
- ORM (Rust only) — SQLx or SeaORM
- JWT authentication (Rust only) — optional
- Next.js extras (Next.js only) — TypeScript, Tailwind CSS
Running a Rust Axum project
cd my-app
# Copy and fill in your environment variables
cp .env.example .env
# Start the server
cargo run
Your API will be listening at http://127.0.0.1:3000.
Verify it’s running:
curl http://127.0.0.1:3000/health
# {"status":"ok","version":"0.1.0"}
Running a Next.js project
cd my-app
npm install
npm run dev
Your app will be at http://localhost:3000.
Running a full-stack project
cd my-app
# Terminal 1 — Rust API
cp api/.env.example api/.env
cd api && cargo run
# Terminal 2 — Next.js frontend
cd www && npm install && npm run dev
The API runs on port 3000, the frontend on port 3001 by default.