This project was generated with Angular CLI version 12.1.0.
Run npm install before doing whatever.
Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
Mocks were builded through an Angular interceptor under the mockfolder. As an helper, fakerJS library was installed to generate better and random data.
featuresfeature module contains every core component like DashboardComponent and Charts.mdoelstypescript models.servicesapp servicessharedshared module contains ervery common compoments like SideNav and Toolbarstatestore module -effectsevery crud action is done here in domain separated files. -actionsstore actions. -reducersstore reducers. -selectorsapp state selectors
Angular Material kit was used for a faster prototyping. Logo was randomly selected.
A chart and a table are showing needed data.
The chart display ONLY capacity factor, for more data information, a table was provided in the second tab.
(Sometimes, as a random value, readings lost are shown the the Reading column. If no lost are visibile, try to refresh the page.)
An autocomplete component was builded to allow users to select a different farm.
Any time a farm is changed, a new set of data is loaded.
A range date pickercomponent allow to select a set of dates as data filter.
### Warning
Please, be aware that, the range picker filter, does not work as espected due to mocked data. Every time a data is changed, a list of 21 days is returned.
Cypress was used to build APP tests. Run npm run test to execute the end-to-end tests via Cypress. To use this command, you need to first run the ng serve command.
Alternatively run npm run test:cy to execute end-to-end test through terminal (instead of client application).
For more informations about Cypress