This set of Yew templates takes you on a detailed journey into web development with Rust using the Yew framework. With Yew at its core, you can explore the ins and outs of web development, making the most of Rust and the Yew framework. Supported by different Rust libraries, such as [TODO], you can effortlessly create landing pages and more complex websites using Rust and Yew. Whether you’re an experienced web developer or a beginner, these templates offer a solid and useful tool for becoming proficient in web development with Rust and Yew.
To use the templates in this repository, you need to set up your environment. Follow these steps to get started:
-
Clone the repository to your local machine:
git clone https://github.com/wiseaidev/rust-yew-book.git
-
Install the required dependencies and libraries. Make sure you have
Rust
, andtrunk
installed on your system.
# Install a Rust toolchain (e.g. nightly):
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
# Install trunk:
cargo install --locked trunk
# Add the wasm32-unknown-unknown target to your Rust toolchain:
rustup target add wasm32-unknown-unknown
-
Navigate to the cloned repository:
cd rust-yew-book
-
Navigate to a template folder and Run:
cd chapter-1/1-functional-component-with-props
trunk serve --port 3000
Navigate to http://localhost:3000 to explore the currently running template.
ID | Chapter | NB Pages | Topics | Open on GitHub | Open on Netlify |
---|---|---|---|---|---|
1 |
Introduction to Rust and YEW Framework |
TODO |
â–ª Brief history and advantages of Rust in web development. â–ª Introduction to the YEW framework and its benefits. â–ª Setting up Rust and YEW development environment (installation, IDE setup). â–ª Creating a basic YEW project structure. â–ª Building a simple UI component with YEW. â–ª Styling and CSS integration in YEW. â–ª Handling user events and interactions in YEW. |
We welcome contributions to enhance this repository! To contribute, please follow the CONTRIBUTING.adoc
file guidelines (TODO). Thank you for helping make this project better!
This project is licensed under the MIT license. For more details, You can refer to the licence
file.