Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 2.22 KB

README.md

File metadata and controls

40 lines (32 loc) · 2.22 KB

The following is a README for a private repository of a backend assessment (code 'interview') I completed for Hatchways.io. (It also includes some changes after it was submitted). The company asks that solutions to the backend assessment not be hosted publicly as they use this assessment for many different people. I have hosted the code privately on github and could make it available if needed.

Backend Assessment for Hatchways.io

Written in Javascript
See Back-end Assessment.pdf for assessment details.

Summary of Tasks:

[x] Task 1: Create api/ping route which returns successful status code (index.js)

[x] Task 2: Create api/posts route which takes in mandatory tag(s) and can optionally take in sortBy and direction. Response must combine requests but return unique objects which are sorted correctly. Error codes must be sent back for absent tags or invalid sortBy/direction parameters. (index.js)

[x] Task 3: Unit tests - utilizing Jest - (index.test.js)
[x] Task 4: Bonus- implement a server side cache

  • apicache is used as the server side cache. Times in Postman go from 600-700 ms for return of data to 4-6 ms with use of the cache. A duplicate unit test is provided in index.test.js to compare times in ms.

This project uses:

Instructions: