Before running the project, make sure you have the necessary tools installed on your system.
-
Install
rustup
:curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
-
Install
trunk
:cargo install --locked trunk
-
Add the Wasm target:
rustup target add wasm32-unknown-unknown
-
Download and install
rustup
: Follow the installation instructions here. -
Install Windows Subsystem for Linux (WSL): Open PowerShell as administrator and run:
wsl --install
-
Reset Network Stack: In PowerShell (administrator mode), run:
netsh int ip reset all netsh winsock reset
-
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
-
Install
trunk
:cargo install --locked trunk
-
Add the Wasm target: s
rustup target add wasm32-unknown-unknown
-
Clone the repository:
git clone /~https://github.com/opensass/nano-ai
-
Navigate to the application directory:
cd nano-ai/examples/yew
-
Run the application:
trunk serve --port 3000
-
Open your browser: Visit http://localhost:3000 to explore the landing page!