A local taxi association needs some help to manage queues at some of their taxi ranks.
They need a web widget which rank managers can use to keep track of how many people are joining and leaving taxi queues. They also want to keep track of how many taxis are queueing.
The widget should keep track off:
- People joining the queue
- add 1 to the queue
- People leaving the queue
- remove 1 from the queue
- Taxis joining the queue
- add 1 to the taxi queue
- Taxis leaving the queue:
- remove 1 from the taxi queue
- remove 12 people from the people queue
- A taxi can only leave if there are enough people (12 people) in the queue to fill the taxi.
- Make all the unit tests pass in
taxi-queue.test.js
. Run the tests fromtest/index.html
. - HTML & CSS for this widget in
index.html
- Some failing unit tests that you need to stop failing by implementing the TaxiQueue Factory Function in
taxi-queue.js
. Don't change the test filetest/taxi-queue.test.js
- A Factory function skeleton is in the
taxi-queue.js
file. - Implement the DOM functionality in the
taxi-queue.dom.js
file.
Once your widget is done store all the queue counters in localStorage be sure that the data is shown correctly after a refresh.
Add a unit test/s to show that your Factory Function's constructor can initialize the people and taxi queue count.
Fork and clone this repo.
Check your EMAIL for the links to submit your GitHub Pages URL and the URL to your GitHub repository on feedback.projectcodex.co. Loadshedding
If you are working remotely and you are experiencing load shedding please let us know in advance. Planning
Spend the first 30 minutes of your assessment on planning. Read through all the different scenarios & create a Kanban Board with the tasks you think you need to complete. Email a link to your Kanban board to [email protected]. Create pseudo code using code comments to help you think through what you need to do. Ask for help
Ask if you need help or clarity
And make sure you submit your final links by latest 16h00.