Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 2.04 KB

README.md

File metadata and controls

42 lines (33 loc) · 2.04 KB

Build Status Coverage Status Code Climate Inline docs

Barito Market

Transports the Logs to where it should be


Inspired by Barito River, this app will handle logs management, service discovery & log stream provisioning for GO-PAY System.

Please see the details in here

Prerequisite for development environment

  • Install Homebrew
  • Install Hombrew Cask
  • Install rbenv using Homebrew brew install rbenv
  • Install Postgres using Homebrew brew install postgresql
  • Install Bundler using RubyGems gem install bundler

Setup

Note: You can run ./devbox.sh from project directory which automatically do these steps.

  • Run gem install bundler
  • Copy over configuration files and modify as necessary
    • config/application.yml.example to config/application.yml
    • config/database.yml.example to config/database.yml
    • config/tps_config.yml.example to config/tps_config.yml
  • Run bundle install to install project gem dependencies
  • Create and migrate the databases:
    • RAILS_ENV=development bundle exec rake db:create db:migrate
    • RAILS_ENV=test bundle exec rake db:create db:migrate

Running

  • Run RAILS_ENV=development bundle exec rake to run the build
  • Run RAILS_ENV=development bundle exec rake coverage:all to generate coverage reports
  • Run bundle exec rails s to run the server.

Rake task

All tasks reside in lib/tasks