Simple client-server game that uses GHCJS as client side.
To start hacking: 0. Install nix from https://nixos.org/nix/
- Run to enter backend shell
./back.sh
- Start server
./serve.sh
- In another terminal session run
./front.sh
- Call
./build.sh
to build frontend part. - Open http://localhost:8080/index.html
There is also several ghcid
scripts for interactive development (notice that they are called outside of any dev shell):
cd back && ./ghcid.sh
for backend.cd front && ./ghcid.sh
for frontend.cd game && ./ghcid.sh
for gameplay part.