Please follow these steps to run the application:
- After cloning this repo,
cd
into the directory and run:bundle install
- Then run:
rails server
- In your broswer, navigate to
localhost:3000
and you should see a list of metrics
Your goal is to create a Ruby on Rails application that interacts with the Hoopla API in order todisplay a list of Metrics and allow their values to be updated. We only require a functioning app; no bonus points are given for UX styling beyond basic readability.
This application should include:
- Landing page will display the list of configured metrics
- Clicking on a metric in the list will take you to a page where metric values are listed
- Values are listed for all the users in the organization (even if the user does not have a value set)
- Values are accompanied by the user's name
- Only list user values, not team values
- Clicking a user row should take you to another page to edit the metric value. After the value is saved, the user list should be redisplayed, showing the updated value.
Your test account has been set up and populated with users, metrics and their values. Login and password are provided in an email along with a skeleton of a rails app to get you past basic authentication, token creation, and URL bootstrapping
- Login and navigate to the Settings page. Provision an API Key and make note of theClient ID and Secret.
- Save the client ID and secret in the .env file provided
- The Hoopla APIs are documented at Hoopla Developer Hub. It includes authentication instructions with the Client ID and Secret that are implemented in the HooplaClient helper class.
- Feel free to modify the HooplaClient helper class to add additional methods as necessary.
- Generate the appropriate models, views and controllers for the above requirements.
- Share the link to your Github repo. Alternatively, zip up your entire Rails project and send to [email protected]