Skip to content

This Bash script automatically creates a project structure using Tauri and Leptos.

License

Notifications You must be signed in to change notification settings

xvi-xv-xii-ix-xxii-ix-xiv/create_project_rust_tauri_leptos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Project Setup Script

This Bash script automatically creates a project structure using Tauri and Leptos.

📌 Requirements

Before using the script, make sure you have the following dependencies installed:

  • Rust & CargoInstall Rust
  • Trunk → Install via cargo install trunk
  • Tauri CLI → Install via cargo install tauri-cli

🚀 How to Use

  1. Save the script to a file, e.g., setup_project.sh.
  2. Grant execution permissions:
    chmod +x setup_project.sh
  3. Run the script:
    ./setup_project.sh
  4. Enter the project name and path.

📂 Project Structure

After executing the script, the following structure will be created:

project_name/
│── backend/
│   ├── src/
│   ├── Cargo.toml
│   ├── src-tauri/
│── frontend/
│   ├── src/
│   ├── Cargo.toml
│   ├── index.html
│── Cargo.toml (workspace)
│── libs/

🛠 Running the Project

Once the project is created, use the following commands:

  1. Start the frontend (Leptos):
    cd project_name/frontend && trunk serve
  2. Start the backend (Tauri):
    cd project_name/backend/src-tauri && cargo tauri dev

✅ Your project is now ready for development! 🚀

About

This Bash script automatically creates a project structure using Tauri and Leptos.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages