Matthew Kaminski a288a35225
Some checks failed
Build Crate / build (push) Failing after 1m47s
Updated remaining modals to daisyui
Made username carry over between modals too
2024-08-30 02:16:15 -04:00
2023-09-20 21:33:12 -04:00
2024-08-29 23:29:28 -04:00
2024-08-28 16:53:08 -04:00
2024-08-30 02:16:15 -04:00
2023-09-17 23:25:46 -04:00
2023-09-22 14:35:19 -04:00
2024-08-28 16:53:08 -04:00
2023-09-17 23:25:46 -04:00
2023-09-18 03:17:59 +00:00
2024-08-29 23:29:28 -04:00
2024-08-29 23:29:28 -04:00
2023-09-17 23:25:46 -04:00
2024-08-29 23:29:28 -04:00

Installing requirements

1. Install rust:

Windows:

Download installer from https://www.rust-lang.org/tools/install

Unix based systems:

Run curl --proto '=https' --tlsv1.3 https://sh.rustup.rs -sSf | sh

2. Install npm

Windows:

https://nodejs.org/en (todo look into:) https://pnpm.io/ npm i -D daisyui@latest

Unix based systems:

sudo apt install nodejs sudo apt install npm npm i -D daisyui@latest

For easy UI see:

https://daisyui.com/components/button/

3. Install Perseus, for real-time updates while developing

cargo install perseus-cli

(temporarily broken, if this doensn't work run cargo install perseus-cli --locked )

rustup target add wasm32-unknown-unknown

4. Install docker for Postgresql

5. Install SeaORM for database

cargo install sea-orm-cli@1.0.0-rc.5

5. Install tailwindcss, for styling

npm install -D tailwindcss

Also take a look at

Website: https://framesurge.sh/perseus/en-US/

Simple tutorial: https://blog.logrocket.com/building-rust-app-perseus/

Building the project

To set up the database, run: $env:DATABASE_URL = "postgres://elo:elo@localhost:5432/elo_app"; sea-orm-cli migrate up

Updating entities after updating database: $env:DATABASE_URL = "postgres://elo:elo@localhost:5432/elo_app"; sea-orm-cli generate entity -o src/entity --with-serde both

To build CSS run: npm run build

To build the project for testing, run perseus serve --verbose (if broken: todo remove once fixed) perseus --wasm-opt-version version_118 serve --verbose

Deploying the project

First run perseus deploy

The folder with everything necessary will be in /pkg

Description
Game ELO website written in rust
https://questia.dev/branch/main
Readme 359 KiB
Languages
Rust 99.2%
JavaScript 0.4%
Dockerfile 0.3%