https://github.com/fthuin/kvstore
https://github.com/fthuin/kvstore
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fthuin/kvstore
- Owner: fthuin
- License: mit
- Created: 2016-05-06T13:19:19.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-05-24T20:36:10.000Z (almost 10 years ago)
- Last Synced: 2025-02-14T02:19:02.878Z (about 1 year ago)
- Language: Erlang
- Size: 4.25 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A biker race project in erlang using Riak
This project compiles and runs with the release of erlang named "Erlang R16B03"
and the version of riak named "Riak 2.1.4".
Here are the commands to type to compile and join the nodes from a terminal:
```bash
make
make devrel
for d in dev/dev*; do $d/bin/kvstore start; done
for d in dev/dev*; do $d/bin/kvstore ping; done
./dev/dev2/bin/kvstore-admin join kvstore1@127.0.0.1
./dev/dev3/bin/kvstore-admin join kvstore1@127.0.0.1
...etc
```
In different terminals:
```bash
./dev/dev1/bin/kvstore attach
```
```bash
./dev/dev2/bin/kvstore attach
```
```bash
...etc
```
In each attached console:
```erlang
biker:start_race(UniquePid, NumberOfPlayers).
```
after that, you can follow the instruction for input that will be shown.
This project was graded 20/20.