Skip to content

eyss/elemental-chess

Repository files navigation

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

Testing

npm test

Starting a Holochain network

npm run network 2

You can replace "2" by the number of agents that you want to boot up

Starting with Holo's HCC mode

npm run network:holo

Go to the 2 pages that opens, and login with any email and password.

Upgrading the Holochain version

Do the following steps for all these repositories:

  1. Upgrade the default.nix for this package to the latest holochain version.
  2. Change the version of the Cargo.toml to the latest hdk version.
  3. Commit the newer versions, and copy the hash of the commit.

And then in this repository, do this:

  1. Upgrade the default.nix for this package to the latest holochain version.
  2. Change the version of the Cargo.toml to the latest hdk version.
  3. Replace the hash for the dependencies to the newer one.
  4. Run npm run network 2 and check that everything works correctly.
  5. Run npm run network:holo and check that everything works correctly.
  6. Package elemental-chess for a new release, by executing the steps in the following section.

Packaging for release

npm run package

At this point, you will have the application bundled in workdir, both the .webhapp for the launcher and the .happ and the UI .zip for Holo.