Skip to content
The voting administration frontend
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist
img
src
tools
.babelrc
.editorconfig
.env
.eslintrc
.gitignore
LICENSE
README.md
package-lock.json
package.json
webpack.config.dev.js
webpack.config.prod.js

README.md

Voting Backend

Voting Backend

This repository holds the voting administration frontend to create votes on the blockchain.

Installation

Follow the steps below to run this app on your local system

  • Clone this repo and cd into it: git clone git@github.com:provotum/admin.git && cd admin
  • Run npm install
  • Adjust the environment variables in .env. You'll need:
    • BACKEND= The url to the running backend instance.
    • WEBSOCKET= The url to the backend websocket endpoint. Usually the same as the BACKEND variable.

Development

Once installed, you may run

  npm start -s

which will open the app on http://localhost:3000/

Production

To get a production build of this application, run

  npm run build

which will generate a bundled version of this app in dist/bundle.js. To display the app, you'll eventually need an index.html as follows:

<!DOCTYPE html>
<html lang="en">
<head>
    <title>Admin Dashboard | Provotum</title>
    <link rel="apple-touch-icon" sizes="180x180" href="favicon/apple-touch-icon.png">
    <link rel="icon" type="image/png" sizes="32x32" href="favicon/favicon-32x32.png">
    <link rel="icon" type="image/png" sizes="16x16" href="favicon/favicon-16x16.png">
    <link rel="manifest" href="favicon/site.webmanifest">
    <meta name="msapplication-TileColor" content="#da532c">
    <meta name="theme-color" content="#ffffff">
</head>
<body>
<div id="app"></div>
<script src="/bundle.js" charset="utf-8"></script>
</body>
</html>
You can’t perform that action at this time.