Exercise in a format of a little web application where lift system is emulated.
- When lift is called, the nearest available lift to the floor is selected
- If call happens, call button displays that call is in progress
- All calls go through the lift call queue and are executed in their order
- Lift is moving at a speed equal to the one floor per second
- Lift displays current direction and target floor while moving
- After page refreshing lift system resumes its operation
- Building can be configured - you can select number of floors and number of lift shafts in
src/buildingConfig.js
https://dpetrouk.github.io/lift-emulator/
npm install
npm run start
- Works on Node v14.17.0 (other versions are not checked)
- Vue 3.2.40
- Webpack 5.74.0