Skip to content

Latest commit

 

History

History
67 lines (26 loc) · 925 Bytes

File metadata and controls

67 lines (26 loc) · 925 Bytes

Industrial equipments

To calculate the time overlapping by various ranges.

Prerequisites

  • Make sure node is installed in the system.
To run the project use node server.

Installation

git clone https://github.com/arpitprojects/industrial-system.git

cd industrial-system

node index.js

Implementations

  • Data file contains the sample json response from which scenarios gets tested.
  • ES6 class is implementated in javascript.
  • Input is collected using the realine module.
  • Input is validated using Regex.
  • start time and end time is formatted using Date object.
  • Comparison is done.
  • Overlaps are found.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT