Skip to content

frasergriffiths/vite-rust

Repository files navigation

Vite & Rust Backend Template

A minimal template with a Vite frontend and Actix Web Rust backend. Easily add routes in src/backend/routes and register them in src/backend/handlers/register.rs. Configure backend port, CORS, and version in the .env file.

Setup

# Clone the repository
git clone https://github.com/LydonDev/vite-rust
cd vite-rust

# Install frontend dependencies
bun install

# Start frontend in development mode
bun run dev

# Build Rust backend
cargo build --release
cargo install --path . --force

# Start backend
backend

# Build frontend for production
bun run build

About

A minimal template with a Vite frontend and Actix Web Rust backend.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors