Skip to content

Repository files navigation

Chessboard Website

Available at: chess.maunolo.dev

image

Development

Docker

docker-compose.yml
services:
    chess_web:
        build:
            context: .
        ports:
            - 3100:3100
        environment:
            PORT: 3100
            JWT_SECRET: your_secret
            RUST_LOG: debug

Local

Dependencies

  1. cargo install --locked cargo-leptos
  2. rustup toolchain install nightly --allow-downgrade - make sure you have Rust nightly
  3. rustup default nightly - setup nightly as default, or you can use rust-toolchain file later on
  4. rustup target add wasm32-unknown-unknown - add the ability to compile Rust to WebAssembly
  5. yarn install if you don't have yarn installed you can find how to do it here

Running

For running the actix server and compiling the wasm package run:

JWT_SECRET=your_secret RUST_LOG=debug cargo leptos watch

and for compiling the css run (needs to run after the server is running):

yarn watch:styles

Open browser on http://localhost:3100/

About

Web multiplayer Chess Board built in Rust

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages