|
5 years ago | |
---|---|---|
app | 6 years ago | |
bin | 6 years ago | |
config | 6 years ago | |
db | 6 years ago | |
lib | 6 years ago | |
log | 6 years ago | |
public | 6 years ago | |
spec | 6 years ago | |
vendor | 6 years ago | |
.gitignore | 6 years ago | |
.rspec | 6 years ago | |
.ruby-version | 6 years ago | |
Gemfile | 6 years ago | |
Gemfile.lock | 6 years ago | |
README.md | 5 years ago | |
Rakefile | 6 years ago | |
config.ru | 6 years ago |
gem install bundler (if not installed)
cd qualifications
bundle install
bundle exec rake db:create
bundle exec rake db:migrate
To enable Sidekiq and run background tasks:
bundle exec sidekiq
redis-server
Import Qualification Data:
Use one of the two options:
Option 1: If Redis and Sidekiq are installed and running:
bundle exec rake qualifications:import_in_background
This imports the qualification data in the background and starts hourly update of local data
Option 2: If Redis and/or Sidekiq are not installed/running:
bundle exec rake qualifications:import
This imports the qualification data. No data update scheduling gets triggered.
Run application server:
bundle exec rails s
RSpec used for basic unit and controller tests.
bundle exec rake db:drop RAILS_ENV=test
bundle exec rake db:create RAILS_ENV=test
bundle exec rake db:migrate RAILS_ENV=test
Run 'rspec' to run tests
Visit Application - http://localhost:3000 (make sure application server is up)
The application uses bootstrap. The qualifications are loaded in an accordion. Clicking on the qualification title opens the accordion and shows the subjects. The subjects are color coded based on the html colour codes. The user interface is responsive and provides an optimal viewing and interaction experience across wide range of devices.
The application uses Importer service to import the qualifications. Sidekiq is used for running import task asyncronously. Sidekiq is also being used to periodically update the local qualification and subject data.