All Projects → dontlaugh → rocket-yew-starter-pack

dontlaugh / rocket-yew-starter-pack

Licence: MIT license
Example boilerplate for websites in pure Rust

Programming Languages

rust
11053 projects
CSS
56736 projects
shell
77523 projects
HTML
75241 projects

Projects that are alternatives of or similar to rocket-yew-starter-pack

ybc
A Yew component library based on the Bulma CSS framework.
Stars: ✭ 131 (+70.13%)
Mutual labels:  wasm, yew
facade
Facade Framework - autogenerated embedded live dashboards for Rust apps
Stars: ✭ 95 (+23.38%)
Mutual labels:  wasm, yew
rust-electron-demo
rust electron demo using yew
Stars: ✭ 15 (-80.52%)
Mutual labels:  wasm, yew
material-yew
Yew wrapper for Material Web Components
Stars: ✭ 116 (+50.65%)
Mutual labels:  wasm, yew
Webassembly Examples
From Simple To Complex. A complete collection of webassembly examples.
Stars: ✭ 177 (+129.87%)
Mutual labels:  example, wasm
fullstack-rust
Reference implementation of a full-stack Rust application
Stars: ✭ 39 (-49.35%)
Mutual labels:  wasm, yew
wasi-worker
WASM / WASI interface for browser service workers
Stars: ✭ 31 (-59.74%)
Mutual labels:  wasm, yew
go-wasm-examples
Some small examples of using Go and WebAssembly
Stars: ✭ 22 (-71.43%)
Mutual labels:  example, wasm
Made With Webassembly
A showcase of awesome production applications, side projects, and use cases made with WebAssembly (Wasm). 👷
Stars: ✭ 132 (+71.43%)
Mutual labels:  example, wasm
Seed Rs Realworld
Exemplary real world application built with Seed
Stars: ✭ 77 (+0%)
Mutual labels:  example, wasm
auth0-rocket-rust-example
Rocket app that authenticates users with Auth0
Stars: ✭ 30 (-61.04%)
Mutual labels:  rocket-rs, sled
Wasm By Example
Wasm By Example is a website with a set of hands-on introduction examples and tutorials for WebAssembly (Wasm)
Stars: ✭ 226 (+193.51%)
Mutual labels:  example, wasm
bounce
The uncomplicated Yew State management library
Stars: ✭ 43 (-44.16%)
Mutual labels:  wasm, yew
zero-graphics
Application framework based on OpenGL ES 2.0. Runs on desktop machines, Android phones and the web
Stars: ✭ 72 (-6.49%)
Mutual labels:  wasm
flutter-animations
medium.com/flutter-jp/implicit-animation-b9d4b7358c28
Stars: ✭ 37 (-51.95%)
Mutual labels:  example
ifconfig.top
Source code of ifconfig.top website
Stars: ✭ 19 (-75.32%)
Mutual labels:  example
arima
ARIMA, SARIMA, SARIMAX and AutoARIMA models for time series analysis and forecasting in the browser and Node.js
Stars: ✭ 31 (-59.74%)
Mutual labels:  wasm
wasm-cn
[翻译中] WebAssembly 中文文档
Stars: ✭ 22 (-71.43%)
Mutual labels:  wasm
Discord.Net-Example
Discord.Net Example bots
Stars: ✭ 104 (+35.06%)
Mutual labels:  example
reactr
Function scheduler for Go & WebAssembly
Stars: ✭ 264 (+242.86%)
Mutual labels:  wasm

Note: this repository is archived. I sketched it out at the time because nothing like it existed and I wanted to scratch an itch. But now Yew has come a really long way, and keeping up with all the changes + maintaining a backend, however minimal, is just not something that interests me anymore. It's irresponsible for me to have this be a "most stars" hit when people search for Yew, when it will usually be busted and out of date. Better stuff exists. Start with the official docs

It can still serve as an example for what I'd consider to be a basic repo layout, but you'll have to rewrite most of the internals.

The front-end rust web development space is still evolving, but has already benefitted from the (frankly incredible) work of so many trailblazers.

The next version of this repo needs to be written by someone new, scratching their own itch. Go do radical shit.

Love, Coleman


Rocket/Yew Starter Pack

Rocket is a framework for building web servers in Rust, with a routing API that feels like Flask (Python). Yew is a front end framework for writing apps in Rust using cutting-edge (but well-supported) WebAssembly technologies, and with an API inspired by patterns from Elm and React.

This project adapts the todoMVC example from the yew repo, and periodically syncs local state with a backend Rocket server.

We also include some scripts to demonstrate building the ui and shipping it over to the server to serve as static assets.

Getting Started

Install rust with rustup. Since we build with --target=wasm32-unknown-unknown, and rely on other unstable features, you must use nightly rust.

rustup default nightly

Build both ui and server on your current platform

./build.sh

Or, build ui and copy the outputs over to server to run locally.

./run-local.sh

Or, build the Rocket server backend as a static binary, using Eric Kidd's Docker container.

./static-binary.sh  # calls server/.container-script.sh

Other Libraries

This project also uses:

  • stdweb and cargo-web - core library and tooling that make frameworks like yew possible. You can support koute on Patreon.
  • maud - html templating
  • sled - an embedded, ordered key-value store
  • bincode - binary encoding for rust types, so we can put stuff in a sled tree
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].