It is a simple workable technique to perform long network requests without blocking the main thread. This makes use of callbacks, promises, and async/await to achieve asynchronously.
The program consists of only two functions (forecast and geocode) in the utils directory and an entry point to the application called app.js. The user is required to provide a location name that is converted behind the scene to coordinates pairs (Longitude and Latitude) that are then passed to the forecast function to display the current location weather with a report briefly.
- Forcast using the Darksky API
- Geocoding using the Mapbox API
- Inputs from Command Line Interface (CLI)