This project is a battery data analysis tool that helps identify schools with battery issues and devices that are in need of battery replacement.
This project is built with pure JavaScript (using TypeScript) and provides a battery data analysis tool that helps identify schools with battery issues and devices that require replacement. It takes JSON data containing battery levels, employee IDs, serial numbers, timestamps, and academy IDs, and performs calculations to determine which schools and devices are affected. The tool can be configured to analyze different data sources and provides clear results for further action.
You can try out the live demo of this project here.
- Clone the repository:
git clone https://github.com/hametGh/newglobe-assignment.git
- Navigate to the project directory:
cd newglobe-assignment
- Install dependencies:
npm install
- After installing the dependencies, you can start the application by running:
npm start
- navigate to
http://localhost:3000
to see the application
To run the tests, use the following command:
npm test
In a better world, the following improvements could be made to this project:
-
Test Coverage: Cover the codebase with more tests to ensure reliability and maintainability.
-
Continuous Integration: Implement continuous integration (CI) pipelines for better development workflow and automated testing.
-
Framework Integration: Explore the possibility of integrating a JavaScript framework like React to improve code structure and maintainability.