Skip to content

bloom-solutions/bluepan-rails

Repository files navigation

Bluepan

Build Status

Rails Engine for use with Bluepan.

Requirements

This engine assumes your main app uses sidekiq and sidekiq-cron. It will automatically register the schedule to sync the provinces, cities, and other data.

Installation

  • Add the gem to your Gemfile and executing bundle install
  • bundle
  • rake bluepan:install:migrations
  • rake db:migrate

During your application initialization, call Bluepan::LoadSidekiqCronSchedule.() to load the sync job cron.

Development

  • Copy .env.sample to .env
  • Replace the variables with your credentials