https://github.com/synphonyte/eofapps
https://github.com/synphonyte/eofapps
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/synphonyte/eofapps
- Owner: Synphonyte
- License: unlicense
- Created: 2025-08-09T21:36:55.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-08-10T19:14:48.000Z (10 months ago)
- Last Synced: 2025-08-10T21:13:15.768Z (10 months ago)
- Language: Rust
- Size: 17.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

## Install
Rustup
```bash
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```
Cargo-Leptos
```bash
cargo install cargo-leptos --locked
```
1. `rustup toolchain install nightly --allow-downgrade` - make sure you have Rust nightly
2. `rustup target add wasm32-unknown-unknown` - add the ability to compile Rust to WebAssembly
## Compiling for Release
```bash
cargo leptos build --release
```
Will generate your server binary in target/release and your site package in target/site
## Executing a Server on a Remote Machine Without the Toolchain
After running a `cargo leptos build --release` the minimum files needed are:
1. The server binary located in `target/server/release`
2. The `site` directory and all files within located in `target/site`
Set the following environment variables (updating for your project as needed):
```sh
export LEPTOS_OUTPUT_NAME="eofapps"
export LEPTOS_SITE_ROOT="site"
export LEPTOS_SITE_PKG_DIR="pkg"
export LEPTOS_SITE_ADDR="127.0.0.1:3000"
export LEPTOS_RELOAD_PORT="3001"
```
Finally, run the server binary.
## Licensing
This template itself is released under the Unlicense. You should replace the LICENSE for your own application with an appropriate license if you plan to release it publicly.