Advertisement
Guest User

Untitled

a guest
Apr 21st, 2017
573
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1. # Frontend Test
  2.  
  3. ## JSON file (_conversations.json_):
  4.  
  5. ```
  6. {
  7. "companies": [
  8. {
  9. "id": "58d2f242833ba7632f3eeb66",
  10. "name": "Soprano"
  11. },
  12. // ...
  13. ],
  14. "users": [
  15. {
  16. "name": {
  17. "first": "Virginia",
  18. "last": "Good"
  19. },
  20. "company_id": "58d2f2426403f53ae8dd2f75",
  21. "email": "virginia.good@hawkster.me"
  22. },
  23. // ...
  24. ],
  25. "conversations": [
  26. {
  27. "from": "celina.young@speedbolt.io",
  28. "subject": "laboris cupidatat consequat",
  29. "body": "Enim veniam ea occaecat laboris non esse nisi occaecat qui cillum laborum. Mteur esse reprehenderit sint incididunt. Fugiat dolor nostrud id tempor.",
  30. "date": 1464375347133,
  31. "to": [
  32. "may.hawkins@pivitol.ca",
  33. "marietta.whitley@polarium.me"
  34. ],
  35. "bcc": [
  36. "frederick.schmidt@insurety.us",
  37. "merle.bryant@rockyard.me"
  38. ],
  39. "tags": [
  40. "highlight",
  41. "suggestion",
  42. "question"
  43. ]
  44. },
  45. // ...
  46. ]
  47. }
  48. ```
  49.  
  50. ## Test:
  51.  
  52. You are part of a frontend engineering team at Front tasked with building an analytics dashboard using Javascript to present the following information about Front's customers:
  53.  
  54. * Top 5 of the most active companies in the last N months (N = 1 through 6). We measure how active a company is by their number of conversations.
  55. * Top 5 of the most active users per company for these companies.
  56. * Top 5 pairs of work buddies. We should look at which pair of users talk the most to each other. Be sure to look at both To & Bcc fields.
  57. * Percent of inactive users per company in the last N months (N = 1 through 6). An inactive user is a user who has not initiated any conversation in that time period.
  58. * Total number of conversations sent per month.
  59.  
  60. Your data team has made available a JSON API endpoint that returns data as in conversations.json.
  61.  
  62. You can either have your frontend app use the JSON file directly, or return it through a node server.
  63.  
  64.  
  65. ## What to send
  66.  
  67. When you are finished, please submit your work by sharing a link to a Dropbox or Google Drive folder (containing your code as well as a README file with instructions on how to run the code).
  68.  
  69. Please do not publish your code online as we intend to reuse the technical assessment.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement