Skip to content

Latest commit

 

History

History
59 lines (39 loc) · 1.52 KB

install.md

File metadata and controls

59 lines (39 loc) · 1.52 KB

Setup

Instructions to install and start TL-Election in Linux:

Dependencies

Download

git clone https://github.com/larc-tse/logs-transparentes.git

Configuration and initialization

The system consists of 3 different modules.

1. Back-end

This module is responsible for receiving the BUs, storing them in a database, and sending them to the TLmanager. It also provides an API for the frontend to access the database and TLManager functions.

Configuration

In config.json file, it is possible to configure the address and port of MongoDB and TLManager,

Initialization

In a terminal, run:

cd backend/
npm install
npm start

If you want to execute the backend with an empty database, run:

npm start reset

2. TLManager

This module is an API that handles multiple Merkle-Trees. See the documentation.

To start the module, follow the instruction in README.

3. Front-end

In the terminal, run:

cd frontend/
npm install
npm start

Populate tree and DB

The prototype supports real data from the Brazilian elections. For more instructions, consult the documentation for real data entry.