Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 36 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -404,14 +404,18 @@ From the first terminal sessions, run:

3: Launch the web backend

From a new terminal session, run:

```sh
cd web/backend
# if this is the first time, run `npm install` first
# if this is the first time, run `npm install` and `cp config.env.template config.env` first
npm start
```

4: Launch the web frontend

From a new terminal session, run:

```sh
cd web/frontend
# if this is the first time, run `npm install` first
Expand All @@ -429,6 +433,37 @@ election.
./kill_test.sh
```

6: Troubleshoot

If while running

```sh
npm start
```

in the web backend folder, you get this error:

```sh
Error: listen EADDRINUSE: address already in use :::5000
```

then run this instead:

```sh
PORT=4000 npm start
#or any other available port
```
and in the web/frontend/src/setupProxy.js file, change :

```sh
target: 'http://localhost:5000',
```
with

```sh
target: 'http://localhost:4000',
```

# Run the nodes

In three different terminal sessions, from the root folder:
Expand Down