Welcome to Front-end test. Take your time to setup your environment.
- git
- nodejs
- npm
npm i
npm run start
npm run test
- Given the
./src/index.html
and./public/messages.json
files, print the messages inside the tags with themessages
class with thedata-max
attribute between 10 and 50 included. - The messages HTML have to respect the example template in
./src/template.html
file. - Each list will start with an header which contains the Team Name in capital letters and no
_
. - The number of the messages in each list have to respect the indication of the
data-max
attribute present in each messages tag. - The messges have to be sorted for timestamp in a descendent order.
- The date-time have to be printed as indicated in the
./src/template.html
file. - This is a vanilla javascript test so please don't add any additional library.
- add some css style it would be nice to see :)
- add some unit test in would be nice too :)
We wish you good luck!