Forms
Build Your Online Form
In Minutes
Follow these steps to install the prerequesites and use our template to get started quickly.
Prerequesites
Install the Rust toolchain using the command below. More information is available on the Rust website.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
After installing Rust, the cargo
command line tool should be available. Next, install the Leptos command line tool to easily interact with Leptos projects.
cargo install --locked cargo-leptos
Install the paged.js comannd line tool. This is required for the PDF generation service.
npm install -g pagedjs-cli pagedjs
Starter Template
We provide a starter template to quickly set up new projects. Run the following command to generate a new project.
cargo leptos new --git nova-forms/nova-forms-template
Change into your new project directory and compile it with automatic rebuilds and browser live-reload.
cargo leptos watch
Happy Coding!
That was already it! You can continue from this starter template to build your own form. Refer to the documentation and the examples for additional help.
We highly recommend using VS Code for development alongside with the recommended plugins. The plugins will be automatically recommended to you once you open the starter template.