https://github.com/dxrcy/unreact-template
A basic template for Unreact SSG apps in Rust
https://github.com/dxrcy/unreact-template
rust ssg template
Last synced: 10 months ago
JSON representation
A basic template for Unreact SSG apps in Rust
- Host: GitHub
- URL: https://github.com/dxrcy/unreact-template
- Owner: dxrcy
- Created: 2022-11-09T07:04:02.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-30T01:39:32.000Z (over 2 years ago)
- Last Synced: 2025-03-15T08:37:18.095Z (10 months ago)
- Topics: rust, ssg, template
- Language: Handlebars
- Homepage:
- Size: 201 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Unreact App Template
A basic template for an [Unreact](https://crates.io/crates/unreact) SSG app in Rust.
- [Live on GitHub Pages](https://darccyy.github.io/unreact-template)
- [Unreact documentation](https://docs.rs/unreact/latest/unreact)
- [Unreact template source](https://github.com/darccyy/unreact-template)
This template uses the latest stable version of Unreact.
# Usage
```bash
# Clone the repo
git clone https://github.com/darccyy/unreact-template my-unreact-app
cd my-unreact-app
# Run in *dev mode*, serve files on localhost, reload client on file changes
just serve
# (Without justfile alias)
cargo watch -x "run -- --dev" -w src -w Cargo.toml
# Build for production
just build
# (Without justfile alias) - This is in the GitHub action
cargo run --no-default-features
```
## GitHub Pages Setup
GitHub will automatically build to the `gh-pages` branch, with the `deploy.yaml` Action.
The action will automatically run when the repository is initially cloned.
In repository settings, navigate to the `Pages` tab, and change 'Branch' to `gh-pages`.
GitHub pages will automatically update, and the website should be live soon.
---
