Skip to content

morucci/FreeSnaky

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FreeSnaky

FreeSnaky

Run with nix flakes

nix run github:morucci/FreeSnaky -- local --snakeName "John"

Build

You need to have nix installed. Then run:

nix build

Binary is available at: result/bin/FreeSnaky

Start a local party

FreeSnaky local

Client / Server mode

Start the Server

FreeSnaky server --bindAddress 127.0.0.1

Start the Terminal Client

FreeSnaky client --address 127.0.0.1 --snakeName "John"

Develop

You need to have nix installed.

To get a shell to develop on FreeSnaky (with ghc, cabal, hls, ghcid) run:

nix develop

To hack on the Web UI run this command to get the server restarted each time when the code change.

ghcid -c 'cabal repl' -r="Server.runServerLocal"