Git Product home page Git Product logo

vocdoni-ui's Introduction

Vocdoni UI

Frontend for the Vocdoni voting client

Docker Builds

There are two types of docker images, bootstrap generated and fully static, depending on the Dockerfile used:

  • Dockerfile: By default, the image includes all NodeJS dependencies, and generates the static site at bootstrap based on the env vars provided. Hence, the initial run of the image takes few minutes to start since it has to build itself. This image is for testing and/or developing purposes.

  • Dockerfile.static: This image generates the static site at build time, and serves the content with nginx, so once it's built no parameters can be configured at runtime. It starts instantly as you would expect. This is a final image, to be used in production environments.

Docker compose deployment

To deploy using Docker Compose follow the instructions.

Prerequisites

  • GNU/Linux based operating system
  • Docker engine (version 19.03 or above) Installation
  • Docker compose (version 1.24 or above) Installation
  • A DNS domain

Environment Variables

Configure the .env file with the following variables:

  • VOCDONI_UI_TAG Docker tag of the image (main, stage, release)
  • VOCDONI_ENVIRONMENT Enviromnent type (dev, stage, prod)
  • BOOTNODES_URL URL to fetch the JSON containing nodes information (gateways, etc.)
  • ETH_NETWORK_ID Ethereum nework ID (xdai, goerli...)
  • DOMAIN Domain name to be served. Used by Traefik to fetch SSL certificates from Let's Encrypt
  • LE_EMAIL Email associated to the domain. Used by Traefik to fetch SSL certificates from Let's Encrypt

TBD: Add all remaining variables.

Deployment

Pull the images

docker-compose pull

Deploy all services

docker-compose up -d

After a while, the UI should be ready at https://

vocdoni-ui's People

Contributors

lales12 avatar brickpop avatar emmdim avatar marcvelmer avatar jpaulet avatar ferranrego avatar elboletaire avatar martamord avatar josemarinas avatar vdo avatar rbaig avatar mathewmeconry avatar p4u avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.