Skip to content

Latest commit

 

History

History
57 lines (44 loc) · 1.33 KB

File metadata and controls

57 lines (44 loc) · 1.33 KB

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! 🚀