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.
- Planning: Send your Problem Solving Template and Kanban Board by 10:30 (they should be mostly complete; and you can still update them after this)
- Complete this form to send your PLANNING links: https://docs.google.com/forms/d/e/1FAIpQLScvytVS_p_Y7ZZ3gXwo9JAhwGlS_X95oMlZu13o9FQdATZLpA/viewform
- Github Repo & Deployed Apps:
- Complete this form to send your GITHUB links: https://docs.google.com/forms/d/e/1FAIpQLScf6UGysuph5wz_ZAtJXcqlQoQfuOdOpH_vdsbZmyMKQF5aPg/viewform
And make sure you submit your final links by latest 16h00 on 30 May 2022.