mhuesch / elemental-chess

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Elemental Chess

nix-shell setup

At first, run from the root folder of this repository to enter the nix-shell:

nix-shell

You need to be inside this nix-shell to run any of the instructions below.

From the root folder of the repo:

npm install

Building the DNA

npm run build:happ

Starting the UI

Enter the UI folder:

cd ui

Then, run this inside the nix-shell in one terminal:

npm run start-alice

And this in another terminal inside the nix-shell as well:

npm run start-bob

If a page with "Not found" appears, wait for the UI to finish compilation and refresh the page.

Starting with Holo's HCC mode

npm run start-holo-alice

Go to the page that opens, and login with email: "alice". Any password will work.

In another terminal:

npm run start-holo-bob

Go to the page that opens, and login with email: "bob". Any password will work.

Building the UI

npm run build

At this point, you will have the UI bundled in ui/dist/ and the happ bundle in dna/workdir/happ ready to be published.

About

License:MIT License


Languages

Language:TypeScript 67.8%Language:Rust 22.3%Language:JavaScript 6.8%Language:Nix 1.9%Language:HTML 1.4%