Coders Packet

Weather-Application Using Nodejs

By Madhulika Damor

Hello everyone! In this tutorial, we deployed a weather application to get information about the weather using Node.js.

Hello everyone!

In this tutorial, we deployed a weather application to get information about weather using Node.js.

Along with weather description, it also provides information about temperature, pressure, wind speed, humidity and rainfall. Main functions used are forecasting and geocoding.

Link : https://weatherworld-thunderstar.herokuapp.com/

 

Prerequisites: 

  1. HTML
  2. CSS
  3. Node.js
  4. Express
  5. Git
  6. Install Visual Studio
  7. Explore Heroku

 

Implementation:

  • Make google chrome extension of “JSON Formatter”
  • Geocoding file
    1. Create an account on the “mapbox.com” site.
    2. Geocoding work on 2 things :
      1. Convert location into geographical coordinates(latitude and longitude).
      2. Convert geographical coordinates into location.
    3. Add an if-elseif-else statement for error handling for network error or wrong address.
    4. Add callback abstraction to export geocoding for a given address.
  • Forecasting file
    1. Forecasting gives us information about nature, temperature, pressure, wind speed and so many other weather parameters using given data.
    2. Add an if-elseif-else statement for error handling for network error or wrong address.
    3. Add callback abstraction to export forecasting for a given address.
  • Apply object shorthand and destructuring property. 
  • Add HTML pages for home, about, help and error.
  • Add CSS and Javascript pages
  • Adding templates to it.

Download project

Reviews Report

Submitted by Madhulika Damor (damormadhu24)

Download packets of source code on Coders Packet