First, you need to install these:
You need to install all of the dependencies required. It can be done with npm
, by typing this command
npm install
If done, you can run the app by typing
npm start
To pass arguments to the app, run it using standard electron
./node_modules/.bin/electron . --help
Sample config can be found in sample_manifest.json
{
"node_id": "tps01",
"origin_hash": "abcdefghijklmn",
"voting_name": "Pemilihan Umum HMIF 2019",
"logo_url": "LOGO_URL",
"background_url": "BACKGROUND_URL",
"color": {
"primary": "#eeeeee",
"accent": "#eeeeee",
"text_dark": "#000000",
"text_light": "#ffffff"
},
"voting_types": [
{
"type": "kahim",
"title": "Ketua himpunan"
}
],
"voters": [
{
"name": "Joni",
"nim": "13517999"
},
{
"name": "Toni",
"nim": "18217999"
}
],
"candidates": [
{
"candidate_no": "1",
"name": "Budi",
"nim":13516999,
"image_url": "IMAGE_URL1",
"voting_type": "kahim"
},
{
"candidate_no": "2",
"name": "Badu",
"nim":18217999,
"image_url": "IMAGE_URL2",
"voting_type": "kahim"
}
]
}
Sample manifest can be found in sample_auth.json
{
"node_id" : "tps01",
"amqp_url": <url>,
"machine_key" : "test_key"
}
Run
npm run dist
On ubuntu, just type
./voting-booth
to run the app.
IT Pemilu HMIF 2019