Skip to content

📚 Accompanying material for my __upcoming__ Yew Web Dev book. Yew is a framework for You, btw! (WIP)

License

Notifications You must be signed in to change notification settings

wiseaidev/rust-yew-book

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mastering Web Development with Rust and Yew for You.

Work In Progress

Made with Rust

Made with Yew

Share On Reddit

Share On Ycombinator

Share On X

Share On Meta

Share On Linkedin

Welcome

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.

Installation

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, and trunk 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.

Chapters

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.

GitHub GitHub GitHub GitHub GitHub GitHub GitHub

Netlify Netlify Netlify Netlify Netlify Netlify Netlify

Contributing

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!

License

This project is licensed under the MIT license. For more details, You can refer to the licence file.

Star History

Star History Chart

About

📚 Accompanying material for my __upcoming__ Yew Web Dev book. Yew is a framework for You, btw! (WIP)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 85.0%
  • HTML 10.2%
  • SCSS 3.0%
  • CSS 1.8%