@@ -360,9 +360,9 @@ results.
360
360
361
361
# ⚙️ Setup
362
362
363
- First be sure to have Go installed (at least 1.19).
363
+ 1: Install [ Go ] ( https://go.dev/dl/ ) (at least 1.19).
364
364
365
- Be sure to have the ` crypto ` utility from Dela:
365
+ 2: Install the ` crypto ` utility from Dela:
366
366
367
367
``` sh
368
368
git clone https://github.com/dedis/dela.git
@@ -373,29 +373,53 @@ go install
373
373
Go will install the binaries in ` $GOPATH/bin ` , so be sure this it is correctly
374
374
added to you path (like with ` export PATH=$PATH:/Users/david/go/bin ` ).
375
375
376
- Create a private key (in the d-voting root folder):
376
+ 3: [ Install tmux] ( https://github.com/tmux/tmux/wiki/Installing )
377
+
378
+ # Setup a simple system with 3 nodes
379
+
380
+ 1: Run 3 nodes:
377
381
378
382
``` sh
379
- crypto bls signer new --save private.key
383
+ ./runNode.sh -n 3
380
384
```
381
385
382
- Copy the private key from the d-voting root folder to the ` cli/memcoin ` folder:
386
+ This will run 4 terminal sessions. You can navigate by hitting
387
+ <kbd >CTRL</kbd >+<kbd >B</kbd > and then <kbd >S</kbd >. Use the arrows to select a
388
+ window.
389
+
390
+ 2: Launch the setup
391
+
392
+ From the first terminal sessions, run:
383
393
384
394
``` sh
385
- cp private.key cli/memcoin/
395
+ ./setupnNode.sh -n 3
386
396
```
387
397
388
- Install memcoin (this requires the private key in ` cli/memcoin ` ):
398
+ 3: Launch the web backend
389
399
390
400
``` sh
391
- cd cli/memcoin
392
- go install
401
+ cd web/backend
402
+ # if this is the first time, run `npm install` first
403
+ npm start
393
404
```
394
405
395
- Additionally, you can build the memcoin binary with:
406
+ 4: Launch the web frontend
407
+
408
+ ``` sh
409
+ cd web/frontend
410
+ # if this is the first time, run `npm install` first
411
+ REACT_APP_PROXY=http://localhost:9081 REACT_APP_NOMOCK=on npm start
412
+ ```
413
+
414
+ Note that you need to be on EPFL's network to login with Tequila. Additionally,
415
+ once logged with Tequila, update the redirect URL and replace
416
+ ` dvoting-dev.dedis.ch ` with ` localhost ` . Once logged, you can create an
417
+ election.
418
+
419
+ 5: Stop nodes
396
420
397
421
``` sh
398
- go build ./cli/memcoin
422
+ ./kill_test.sh
399
423
```
400
424
401
425
# Run the nodes
0 commit comments