Elasticracy up and running! At least local version. I have no idea what I'm doing. I know shit about Ruby on Rails so currently I don't know how to prepare elasticracy to logo voting but hey, I have whole week to learn
Well, first of all we need to get fixed the file externals/genesis.json and the externals/jsonserver.py: This is the service which serves the actual balances in XEL. We could drop the entire json stuff and code the balances directly into the python file or fetch it from our block explorer.
To install, do the following in the elasticracy folder:
sudo gem install bundler (it might me needed to add /usr/local/bin to PATH)
sudo apt-get install ruby-dev libpq-dev
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
bundler install
bin/rake db:migrate RAILS_ENV=development
To start:
bin/rails server
To add a new vote:
Go to
http://localhost:3000/topics (or whatever address you use)
Click on "new topic" and log in with the credential setup in config/initializers/user.rb:
Default:
Username: Sauron
Password: s3cr3t
Just add a title for the TOPIC and set a due date. Here, no options are set up yet!
Then go to:
http://localhost:3000/arguments/newAnd add one "Vote Option" after the other to the topic!
The workflow is a pain in the ass, I know! Maybe someone makes it nicer?