- npm start: Runs the web application in developer mode
- npm test: Executes Jest tests that have the
.test.js
extension
Feel free to create new files to help you complete these tasks.
- In
service.js
, utilise the 'APIs' provided bydata.js
resolving to an array of chatlog messages in the following format, sorted by time.
[
{
"messageId": "12356",
"userId": "613651251",
"fullName": "Robin Balmforth",
"timestamp": "2017-02-23T14:57:20.629Z",
"email": "robin@example.com",
"message": "Hello, World!",
"avatar": null
},
...
]
(Do not modify data.js
to achieve this)
- Create a view of this dataset, with the root of your React application starting in
App.js
. Including:
- Display the
avatar
where applicable - Display the
email
on hover - Format the timestamp to be human readable
- Push on a public GitHub repository.