Skip to content

This is a simple app that uses some local data to track field support for batteries.

Notifications You must be signed in to change notification settings

acekyd/field-support

Repository files navigation

New Globe Frontend Assessment - Battery Maintenance app.

This is a simple app that uses some local data to track field support for batteries.

Demo - https://codesandbox.io/p/github/acekyd/field-support/master

Tools used

  • Nuxt 3
  • Tailwind CSS

Key Design Choices and Assumptions

  • When batteries have the same charge on multiple readings, only the first timestamp is used to compare the discharge duration till a different charge value is added.
  • Data about how many batteries per school are bad is stored differently from the actual processed data set.
  • Currently not using the employeeID for anything but kept it in the processing in case a new feature could be added.

Setup

Make sure to install the dependencies:

# npm
npm install

# pnpm
pnpm install

# yarn
yarn install

Development Server

Start the development server on http://localhost:3000:

# npm
npm run dev

# pnpm
pnpm run dev

# yarn
yarn dev

Testing

npm test
  • NB: Testing is currently broken as a result of some Nuxt 3 features but I didn't want to delay and would continue to look into a solution.

About

This is a simple app that uses some local data to track field support for batteries.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published