Skip to content

Pubic reference to Private repository that could be made available upon request: node.js, Rest-API, unit testing, server side cache

Notifications You must be signed in to change notification settings

dfreeman500/javascript-api-public-reference

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

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:

About

Pubic reference to Private repository that could be made available upon request: node.js, Rest-API, unit testing, server side cache

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published