Skip to content
This repository has been archived by the owner on Mar 10, 2023. It is now read-only.

Aedius/royaumes-rust

Repository files navigation

royaumes-rust

this project was an attempt to recreate an old school web mmorpg, but if i loved the tech, i didnt planned tyo play to it.

i will reboot a real game that i want to play in https://github.com/galakhygame

lib:

an state main lib about event sourcing, it provide a trait to implement to create a state from event and generate event from command.

an state-repository lib that handle the evenstore database with the event command and state provided by the previous lib.

an auth lib to share the jwt token check to all component.

an global-config lib to share the configuration between services for CORS

components :

a public html / js client to load public resources.

a private html / js client to load private resources.

an account component with :

  • webcomponent to register / login

Development

requirements

frontends needs trunk :

cargo install trunk
cargo install wasm-bindgen-cli
cargo install sqlx-cli
cargo install cargo-watch
cargo install -f cargo-upgrades
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
rustup target add wasm32-unknown-unknown
aptitude install clang

run

see the makefile

tests :

they are done with : https://cucumber-rs.github.io/cucumber/current/quickstart.html

cargo test -p account-state --test account-state

About

implementing an old school webgame

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages