5 unstable releases
0.3.0 | Sep 2, 2023 |
---|---|
0.2.0 | Jul 16, 2023 |
0.1.4 | Jan 16, 2023 |
0.1.3 | Jan 15, 2023 |
0.1.1 | Jan 15, 2023 |
#30 in #ssr
Used in 7 crates
(6 directly)
49KB
1.5K
SLoC
Stellation
A framework experience for Yew.
Stellation provides a development stack with:
- Tooling around Server-side Rendering Support.
- An easy-to-use, SSR-transparent RPC Implementation.
- A development server that automatically rebuild upon changes.
- A single binary distribution with embedded frontend.
Quickstart Guide
-
Install required tools
Stellation uses the following tools:
- Trunk
- cargo-generate
- cargo-make
They can be installed with cargo install trunk cargo-generate cargo-make
-
Create project
Run
cargo generate futursolo/stellation-templates
and follow the prompt. -
Start development server
Run
cargo make --quiet start
in the project directory.(This may take a couple minutes when the project is building for the first time.)
lib.rs
:
Bridge between the frontend and backend.
This module is a RPC implementation that facilitates communications between frontend and backend.
It supports the following routines:
Bridge has 2 connection methods local
and remote
. When a LocalLink
is used, routines will
be connected with the local method and can process requests with resolvers. This can be used for
server-side rendering and processing requests from a bridge connected with the remote method. If
the FetchLink
is used, it will send the request to the bridge endpoint which will
process the routine at the server-side. This is usually used for client-side rendering.
You can check out the example for how to implement resolvers.
Dependencies
~12–21MB
~288K SLoC