create-volt-rs
Creates a volt.rs app: React pages server-rendered by a Rust server, with Tailwind CSS and shadcn/ui.
npm create volt-rs@latest my-app
cd my-app && npm run dev
Without a directory name, it asks for one. Options (npm needs -- before them):
npm create volt-rs@latest my-app -- --template web --no-install
| Option |
Effect |
--template default, -t default |
React + Rust server (server/main.rs). Needs Rust 1.88 or newer. |
--template web, -t web, --web |
React only, no Rust code. |
--no-install |
Skip installing dependencies. |
Without --template, the default template is used when cargo is installed and web otherwise. Dependencies are installed with the package manager that ran the command (npm, pnpm, yarn or bun). Requires Node.js 18 or newer.
See Getting started.
License
MIT