Git Product home page Git Product logo

myer-elevator's Introduction

The Challenge - Front End Web Developer Test

Assumptions made

  1. Elevator can only store one destination at a time. That is, an elevator that is moving will not stop at other floors to pick up people other than the floor where the button was pressed.

  2. If there are more than 20 people waiting for an elevator, only 20 people will enter. The remainder of the people will will have to press the button again (Similar to what happens in real life).

  3. If all elevators are occupied, users are notified to try again in a few minutes.

  4. If 0 people press the button for a lift, the system will notify us with a message.

  5. If there 2 or more elevators at the same floor (both are closest to the floor where the call for the elevator was made), any one of them will be acceptable to ferry the passengers.

  6. An available elevator is defined as an elevator that has Nobody inside AND is not currently in motion.

  7. Everyone from the same floor wants to head to the same destination at one point of time. Eg, if floor 10 has 10 people, and the desired floor is 5, ALL of them want to go there once the button is pressed.

Design

This project uses the MEAN (MongoDB, Express, Angular, NodeJS) stack. The generator used was angular-fullstack by DaftMonk. It is currently deployed to Heroku here and uses MongoHQ as a service for storage purposes.

Testing

Tests are run using the command grunt test

myer-elevator's People

Contributors

choonkending avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.