8000 GitHub - aospub/eoshub.io
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

aospub/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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Elm 58.1%
  • CSS 22.3%
  • Ruby 16.1%
  • HTML 1.9%
  • JavaScript 1.6%
0