https://github.com/patternfly-yew/patternfly-yew-quickstart
A Patternfly for Yew quickstart repository
https://github.com/patternfly-yew/patternfly-yew-quickstart
patternfly rust yew
Last synced: about 1 month ago
JSON representation
A Patternfly for Yew quickstart repository
- Host: GitHub
- URL: https://github.com/patternfly-yew/patternfly-yew-quickstart
- Owner: patternfly-yew
- License: apache-2.0
- Created: 2020-10-17T21:48:37.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-05-02T06:23:11.000Z (almost 2 years ago)
- Last Synced: 2024-05-03T11:03:39.891Z (almost 2 years ago)
- Topics: patternfly, rust, yew
- Language: Rust
- Homepage: https://patternfly-yew.github.io/patternfly-yew-quickstart/
- Size: 668 KB
- Stars: 25
- Watchers: 4
- Forks: 13
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PatternFly quick start for Yew
This is a quickstart template to get you started with [PatternFly for Yew](https://github.com/patternfly-yew/patternfly-yew).
Here you can see this page in action: https://patternfly-yew.github.io/patternfly-yew-quickstart/
## Pre-requisites
* Rust
```shell
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```
* Trunk
```shell
cargo install trunk
```
* NodeJS `npm`
## Initialize
Fetch the PatternFly dependencies:
```shell
npm ci
```
## Run local developer setup
Start a local development server, which re-builds every time you make changes to the code:
```shell
trunk serve
```
Direct your web browser to: http://localhost:8080
You can also start on a different port:
```shell
trunk serve --port 8010
```
## Perform a release build
To build the Rust components and package up the page, run:
```shell
trunk build --release
```
The release is in the `dist/` folder.