Bluepan
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