Shastic interview question

Exercise Part 1:

Interview Answer

Anonymous

23 Apr 2020

Create a plain ruby app that will fetch some JSON data from API and will store it in the database. You need to integrate docker with this. On any new system, your code should be up and running with these three commands. `docker-compose build` ## to install dependencies like MySQL, ruby gems, bundler, etc `docker-compose up -d` ## to up your docker container `docker-compose exec shastic_challenge bundle exec -r 'app.rb' -e 'call'` ## to run your code which will fetch the data and store it in the database. This code should also take care of DB migrations. Note that this is a plain ruby app.