Giter Club home page Giter Club logo

elevator_task's Introduction

  • npm run dev - run dev server

  • npm run lint - run linter

  • npm run fmt - check prettier

  • npm run fmt:fix - fix prettier

  • npm run test - run tests

Elevator Exercise

Part 1 – Setup Base Solution According to Standards

You are required to create a base solution according to the following standards:

  • General Requirements

    • Develop the solution structure and code using best practices.
    • Use design patterns acceptable for React and TypeScript.
    • Include at least one test.
    • Split the application into components using best practices.
    • Optional: Add simple visualizations, such as images for floors or sounds for elevator arrivals.
  • Preferred Tools, Technologies, and Packages

    • React, TypeScript, HTML, CSS.
    • Responsive design with styled-components.
    • Styled System, theme-ui, radix forms, react-form-hook.
    • Vite package manager.
    • Jest testing package.

Part 2 – The Application

You are required to write an elevator control software that consists of the following parts:

  • UI

    • Display a building with floors separated by numbers and an elevator image.
    • When a floor is clicked, call the elevator to that floor.
    • Display a moving elevator that stops at a specific floor.
  • Logic

    • When the first person calls the elevator, it starts to move.
    • An unlimited number of people on different floors can call the elevator.
    • The elevator arrives at floors in the order it was called.
    • When multiple elevators exist, detect the one that can arrive faster.

Example 1:

  • Person calls elevator on floor 7, and it's moving.
  • Elevator number 1 starts moving

elevator_task's People

Contributors

vingeb0 avatar

Watchers

 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.