-
Ruby version
ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux]
-
Rails version
Rails 7.0.6
-
Database creation
$ rails db:create
-
Database initialization
$ rails db:migrate
$ rails import_data:movies_and_reviews
-
How to run the test suite
N/A
This assignment is about writing a small Ruby On Rails application. Use a methodology that works for you or that you are used to.
-
Create a new application with Ruby on Rails
-
Study the content of movies.csv and reviews.csv
-
Define a database schema and add it to your application
-
Write an import task to import both CSV-files
-
Show an overview of all movies in your application
-
Make a search form to search for an actor
-
Sort the overview by average stars (rating) in an efficient way
This depends on the nature of the imported data, do I need to do processing on it or not?
This can be done by different ways, using batches/chunks [I've developed that feature for different data sources not just CSV files at incorta.]
Also, can be done using streams to read line by line instead of loading the whole file to memory.