OpenCountries provide countries information via a REST API.
- Ruby 2.7+.
- MongoDB 4.4+.
bundle install
Start the web server:
rackup -p 9292
Show tasks:
bundle exec rake -T
Import countries information:
bundle exec rake countries:import
Show routes:
bundle exec rake routes
Run the linter:
bundle exec rake rubocop
Run all tests:
bundle exec rake test
Start command line:
ruby bin/console
Returns the total count of all countries:
Country.count