WeatherDomainLayerSampleApp
The projet demonstrate the usage of having a contract between our api responses and ui objects to eliminate dependency of both on each other.
Article for this project
Weather apis used
- Visual crossing api: https://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/timeline/New york?unitGroup=us&include=events%2Ccurrent&key=ApiKey&contentType=json
- Open weather api: https://api.openweathermap.org/data/2.5/weather?lat=28.7041&lon=77.1025&appid=ApiKey
Purpose of this project?
- To make our UI states independent of the API responses and vice versa.
- To understand how to implement clean architecture approach.
- For clean code practices.
What else this project demonstrate?
- One of the right way to pass data from api to ui.
- How to manage different layers of concerns while making an api call.
- How to manage ui state effectively.
- How to manage interactions between different layers.
- Unit testing