Weather Application
Using NodeJs
By
Rahul Mamoria
About Weather Web Application
1. This project is about building a web application to show a weather forecast using
weather API from external services Dark Sky.
2. In this application we are able to search weather forecast for a specific location and
it will automatically detect information regarding that location and will display
important weather details.
3. Important details that it will show are mentioned below
• Precipitation percentage
• Current temperature
• Rain prediction
Why Weather Application
To order to plan our journey ahead.
To plan meeting/commute timings
To decide what to wear
To know when rain comes or stops
To receive alerts / warnings during cyclones, sandstorms, typhoons etc.
If a person is travelling in bus / train / flight , may need to check the weather
in his / her destination city.
Some travelers may need to know more details about the weather such as
temperature, Precipitation percentage etc..
How I build this Application
Designing of frontend part is build using HTML, CSS and JavaScript.
Fig 1: Home page and search appeared.
About and Help page
For Backend part…
For development of the backend part I have used NodeJs and ExpressJs.
What is Node.Js…
Node.js is an open source, cross-platform runtime environment and
library that is used for running web applications outside the client’s browser.
It is used for server-side programming, and primarily deployed for non-
blocking, event-driven servers, such as traditional web sites and back-end API
services, but was originally designed with real-time, push-based architectures
in mind.
Every browser has its own version of a JS engine, and node.js is built on
Google Chrome’s V8 JavaScript engine
Express.JS
What is Express.Js
Express is a Node.Js web application framework that provides broad features for
building web and mobile applications. It is used to build a single page, multipage,
and hybrid web application.
It's a layer built on the top of the Node js that helps manage servers and routes.
Why Express.js
The reason behind creating an express framework for node js is:
Time-efficient
Fast
Economical
Easy to learn
Asynchronous
Some screenshot of code…
Dependencies used in project…
There are some dependencies which are used in this project…
Hbs – handlebars
Request