Available at: chess.maunolo.dev
services:
chess_web:
build:
context: .
ports:
- 3100:3100
environment:
PORT: 3100
JWT_SECRET: your_secret
RUST_LOG: debugcargo install --locked cargo-leptosrustup toolchain install nightly --allow-downgrade- make sure you have Rust nightlyrustup default nightly- setup nightly as default, or you can use rust-toolchain file later onrustup target add wasm32-unknown-unknown- add the ability to compile Rust to WebAssemblyyarn installif you don't have yarn installed you can find how to do it here
For running the actix server and compiling the wasm package run:
JWT_SECRET=your_secret RUST_LOG=debug cargo leptos watchand for compiling the css run (needs to run after the server is running):
yarn watch:stylesOpen browser on http://localhost:3100/