Voting Information Project web app.
If you've been running the data-processor with lein run
you can run Metis locally to show a dashboard for that data.
- Node.js
- Grunt
- Install Grunt CLI
npm install grunt-cli
- Install Grunt CLI
- Bower
- Intall Bower
npm install bower
- Intall Bower
- Postgres
- RabbitMQ
- Ruby
- Sass
- Install Sass
gem install sass
- Install Sass
npm install
./node_modules/.bin/bower install
- Compile SASS:
./node_modules/.bin/grunt sass
Create a .env
file in the root directory, copy the following into
it, and provide values for your Postgres database and RabbitMQ server.
DB_ENV_POSTGRES_DATABASE=dataprocessor
DB_ENV_POSTGRES_PASSWORD=
DB_ENV_POSTGRES_USER=dataprocessor
DB_PORT_5432_TCP_ADDR=localhost
DB_PORT_5432_TCP_PORT=5432
RABBITMQ_PORT_5672_TCP_ADDR=localhost
RABBITMQ_PORT_5672_TCP_PORT=5672
VIP_DP_RABBITMQ_EXCHANGE=data-processor-exchange
node app.js
Load http://localhost:4000 in a browser. You
can log in using the accounts in authentication/strategy.js
. The
super user account is "testuser" and its password is "test".
To run in docker, the simplest way is to have docker-compose installed (
brew install docker-compose
).
docker-compose build
docker-compose up
- Then hit http://localdocker:4000/, assuming you have a localdocker host file entry pointing to your docker host. If not, replace localdocker with your docker host IP address.