A modern web application built with Rust and SvelteKit for managing tasks. Created for boilerplating our project.
- Rust
- Rocket (Web framework)
- Diesel ORM
- SQLite Database
- SvelteKit 5.0
- TypeScript
- Biome (Formatting & Linting)
- Rust (latest stable version)
- Node.js (LTS version)
- SQLite3
.
├── back/ # Rust backend
└── front/ # SvelteKit frontend
- Navigate to the backend directory:
cd back
- Install Diesel CLI (if not already installed) (optional):
cargo install diesel_cli --no-default-features --features sqlite
- Set up the database (optional):
diesel setup
diesel migration run
- Run the backend server:
cargo run
The backend will be available at http://localhost:8000
- Navigate to the frontend directory:
cd front
- Install dependencies:
yarn install
- Start the development server:
yarn run dev
The frontend will be available at http://localhost:5173
- The backend uses Rocket's built-in auto-reload feature
- Database migrations are located in
back/migrations/
- API endpoints are defined in
back/src/main.rs
- Task model and operations are in
back/src/task.rs
- Components and routes are in
front/src/routes/
- TypeScript types are automatically generated in
.svelte-kit/
- Use
npm run check
to type-check the project - Biome handles formatting and linting
cd back
cargo build --release
cd front
yarn run build