In order to give the meteorologists a tool where they can easily interact with forecast data and feedback produced by them. This application was built on Angular 16.2.0.
The forecast-charts
integrates a visualization process where users can add different warnings that the person in charge
of a Meteorologist
organization compares the results.
-
Encapsulate all the desired behavior using
ngrx
, there are the next state modules with their respectivemodel
,actions
,reducers
,selector
,state
andeffect
(if it's required):forecast-data
selected
test-cases
users
warnings
-
In order to preserve the data after reloading, and not reload all the previous data, a copy of the global state is sync to the local storage. Which is included in the state via
metaReducers
. -
In order to visualize the data, it was the library
chart.js
and the pluginchartjs-plugin-annotation
to add the warning boxes. -
Navigate through all different available
test-cases
. -
Having in mind that this is also a module from the state management, you have the certainty that these values are stored.
-
Functionality to switch user, from the list of users provided. At the moment to get back from a user that already has warnings stored, this data should be accesible.
Follow this steps to get forecast-charts
up and running:
- Be sure to have AngularCLI installed in your machine.
- Clone this repository
git clone https://github.com/marcmelchor/forecast-charts.git
. - Build the project
ng build
. - Run the project
ng serve
.
Once the application is up and running, you can check on your browser at http://localhost:4200
.
- Select a user from the previously provided list.
- Navigate through the different
Forecast data
grouped byregion/city
. - At the moment to navigate to a new
Forecast
it should load it from the previously provided set of data. - Add new warnings, selecting starting time and ending time, you should also add a warning type.
- You should be able to see the boxes containing the range before selected.
- Remove the warnings, and you should be able to see how they are also removed from the visualization.
- Having some warnings stored, switch through different
Forecast data
, if you have saved some warnings, you should be able to see them integrated.
Contributions are welcome! Follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b feature-new-feature
- Make changes and commit:
git commit -am 'Add new feature'
- Push the branch:
git push origin feature-new-feature
- Open a pull request.
This project is licensed under the MIT License.
For questions or feedback, you can reach me at marc.melchor@outlook.com or follow me on LinkedIn @marc-melchor.