Skip to content

Latest commit

 

History

History

yew

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

🤖 Nano AI Yew Component Example

⚙️ Pre-requisites

Before running the project, make sure you have the necessary tools installed on your system.

🐧 Linux Users

  1. Install rustup:

    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  2. Install trunk:

    cargo install --locked trunk
  3. Add the Wasm target:

    rustup target add wasm32-unknown-unknown

🪟 Windows Users

  1. Download and install rustup: Follow the installation instructions here.

  2. Install Windows Subsystem for Linux (WSL): Open PowerShell as administrator and run:

    wsl --install
  3. Reset Network Stack: In PowerShell (administrator mode), run:

    netsh int ip reset all
    netsh winsock reset
  4. Install Linux packages in WSL: Once inside your WSL terminal, update and install required dependencies:

    sudo apt update
    sudo apt install build-essential pkg-config libudev-dev
  5. Install trunk:

    cargo install --locked trunk
  6. Add the Wasm target: s

    rustup target add wasm32-unknown-unknown

🏗️ Building and Running

  1. Clone the repository:

    git clone /~https://github.com/opensass/nano-ai
  2. Navigate to the application directory:

    cd nano-ai/examples/yew
  3. Run the application:

    trunk serve --port 3000
  4. Open your browser: Visit http://localhost:3000 to explore the landing page!