The aim is to write a simple http server with methods to use a queue.
These methods should be implemented:
POST /queue/pop
- Should pop from the queue and return a JSON object with an ID and created timePOST /queue/push
- Should submit JSON object to a server with an ID and push it to the queueGET /queue/count
Should return the size of the queue in a JSON object
Please use these technologies:
Feel free to use any NodeJs libraries that you find suitable.
- Write tests in NodeJs using Mocha
- Use Typescript
Please tell us how long this took and submit either a link to a public git repo or a zip file with the project (excluding output files and the node_modules
directory).