Here is the description of what you'll need to implement on this technical challenge.
Implement a function (on the same module - request.py) to cache requests preventing unecessary calls. You MUST use this Redis module as a cache service.
Note: You may use any Python version and import other modules, unless they implement cache services for the requests.
Implement a JavaScript code that replaces the value (innerHTML value) from elements with the class js-date-format with the formatted value of the time passed since the current date time. The value within the elements will be a ISO date format (2019-04-05T12:00:00.000Z for example).
Use the following format:
- 1 second ago OR X seconds ago
- 1 minute ago OR X minutes ago
- 1 hour ago OR X hours ago
- Date in ISO format (original format)
It will be tested on Chrome.
Working example:
Note: You should use ecmascript 6 features but may not use any framework or add any dependency.
Implement the CSS code to make the component on component.html look like the desired mockup below. Do not use HTML tags as CSS selectors. It will be tested on Chrome.
Mockup:
Note #1: You should use new CSS features and add classes as you need, but try not to change the HTML structure.
Note #2: We recommend you try using BEM.
This is a list of what will be evaluated in your code:
- Code is working as expected
- DRY
- Separation of concers
- Used coding conventions
- Code readability and how you name things
- Overengineering

