- Ruby 2.5.1
- Rails 5.2.0
- Elm 0.18.0
- Ruby - https://gorails.com/setup/osx/10.13-high-sierra#ruby
- Postgresql
brew install postgresql # To have launchd start postgresql at login: brew services start postgresql
- Redis - https://redis.io/topics/quickstart
brew install redis
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
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
-
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)
app/frontend
- Travis https://travis-ci.org/
- DockerHub https://hub.docker.com/r/eosys/eoshub.io/