Skip to content

EOSYS-io/eoshub.io

Repository files navigation

README

Build status

Alpha: Build Status

Dependencies

  • Ruby 2.5.1
  • Rails 5.2.0
  • Elm 0.18.0

Preinstall

Setup

git clone git@github.com:EOSYS-io/eoshub.io.git
cd eoshub.io
gem install bundler
bundle install

cp ${MASTER_KEY_PATH}/master.key config

touch .env
echo "DATABASE_URL=postgresql://${OSX_USERNAME}:@localhost/eoshub_dev" >> .env
echo "TEST_DATABASE_URL=postgresql://${OSX_USERNAME}:@localhost/eoshub_test" >> .env

# Install yarn and elm dependencies.
yarn install
yarn run elm package install -y

rails db:create

Run

First, run Back-end

rails s(erver)  

Second, run Front-end

bin/webpack-dev-server # for development  

execute sidekiq for a cron jobs.

bundle exec sidekiq RAILS_ENV=<env>  

for voting page crawling

redis-sever
sidekiq RAILS_ENV=development

Test

  • Elm

    yarn run elm-test # Run this command on the project root directory.
    
    • Make sure that elm-package.json in test/frontend should contain all dependencies of elm-packge.json in the root directory.
  • Rails

    rails t(est)
    

Frontend Source Location

app/frontend

CI