Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sycamore-rs/sycamore-rocket-template
A template for getting started with Sycamore + Rocket
https://github.com/sycamore-rs/sycamore-rocket-template
sycamore template
Last synced: 3 months ago
JSON representation
A template for getting started with Sycamore + Rocket
- Host: GitHub
- URL: https://github.com/sycamore-rs/sycamore-rocket-template
- Owner: sycamore-rs
- Created: 2021-07-02T18:34:16.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-04-13T17:00:18.000Z (over 1 year ago)
- Last Synced: 2024-06-26T03:35:30.104Z (4 months ago)
- Topics: sycamore, template
- Language: Rust
- Homepage: https://github.com/sycamore-rs/sycamore
- Size: 418 KB
- Stars: 13
- Watchers: 2
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sycamore Rocket Template
This is template for [Sycamore](https://github.com/sycamore-rs/sycamore) + [Rocket](https://rocket.rs) + [Trunk](https://trunkrs.dev/) on [gitpod.io](https://www.gitpod.io).
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/sycamore-rs/sycamore-rocket-template)
## Usage
For a more thorough explanation of Trunk and its features, please head over to the [repository](https://github.com/thedodd/trunk).
### Running
Just click on the button above to start a workspace. Trunk will automatically be installed and a dev server will automatically be started.
If you are using this template on your local machine, use the following command to start the Rocket server.
```bash
cargo watch -x run -p server # Or cargo run -p server
```
And this command to automatically rebuild the client.
```bash
cd app && trunk watch
```### Release
```bash
cargo build --release # Build the server in release mode
cd app && trunk build --release # Build the client in release mode
```## Using this template
This template is intended to be used as a quick way to test out something using Sycamore without having to setup a local environnement.
If you do not intend to use gitpod.io, simply remove `.gitpod.yml` and `.gitignore.Dockerfile` from source control.