The project uses stack. To build everything run:
stack build
In order to start using Ale, you need three things:
- A set of keys to simulate different users of the system.
- A secret key for the server to sign blocks.
- Genesis data.
The setup-script will do everything for you, but if you are a curious and independent person, see the next subsection.
stack exec ./bin/setup.sh
(Prefix all commands with stack exec --
or start by launching a shell with
correct PATH
: stack exec /bin/bash
.)
- Generate a keychain:
ale-keychain generate
. - Generate a server key:
ale-keygen -p $(ale-path server-key)
. - Generate a token distribution:
ale-distribute -n 10 key1 key2 key3
. This gives 10 money-tokens to each of the keys called key1, key2, and key3. - Feed you distribution to
ale-genesis
.
The steps above generate a number of data files and store them in a designated directory
(you can find out which one by running ale-path data
) so you have to
do them only once. When done, you can:
- Start Hub:
ale-hub
- Start a node:
ale-node 8080
(8080 is the port for the REST server to listen) - Play with provided tools.