by Margaret Berry
This application uses Ruby 3.0.5p211 and Rails 7.0.5. Data comes from the Wikipedia API.
A user should be able to:
- See the most viewed articles yesterday.
- See the most viewed articles per week and per month.
- Ensure that you have the correct Ruby and Rails versions installed on your machine. See the Rails docs for help.
- Clone the application.
- Within the home directory of the application, run
bundle install
. - Run
brew install redis
. This will set up in memory storage. You will not need to setup a separate database for this project. - Run
rails s
to start your local rails server. - Navigate to localhost:3000 in your browser.
- To run tests,
bin/rails test
Get a list of the most viewed articles yesterday.
GET http://localhost:3000/most_viewed_yesterday
Get a list of the most viewed articles for the last week. The end date is yesterday's date and the start date is 7 days before yesterday.
GET http://localhost:3000/most_viewed_last_week
Get a list of the most viewed articles for the last month. The end date is yesterday's date and the start date is 30 days before yesterday.
GET http://localhost:3000/most_viewed_last_month
This software is licensed under the MIT license.
Copyright (c) 2023 Margaret Berry