An open API service indexing awesome lists of open source software.

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

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.

---

![Unreact Icon](./public/icon.png)