Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/roshan-raj/nodejs-weatherapp

Using the `OpenWeatherMap` API to build a simple Application which displays Temperature, Country Name and Location of the City.
https://github.com/roshan-raj/nodejs-weatherapp

api javascript json node-module nodejs

Last synced: about 7 hours ago
JSON representation

Using the `OpenWeatherMap` API to build a simple Application which displays Temperature, Country Name and Location of the City.

Awesome Lists containing this project

README

        

# NodeJs-WeatherApp
Using the `OpenWeatherMap` API to build a simple Application which displays Temperature, Country Name and Location of the City.

In this Code i have used the [OpenWeatherMap.org](https://home.openweathermap.org/) API and display the result to the console.
Create an account and generate the API Key.

Create a directory named `NodeJs-WeatherApp` and run the command

> npm init

This will create a `package.json` file.

To call the API i have used the npm module called [request](https://www.npmjs.com/package/request). This is used to make HTTP requests. Run the following command to install it.

> npm install request --save

Here is a screen-shot of the output.

![Screenshot](https://github.com/roshan139154/NodeJs-WeatherApp/blob/master/Screenshot/Output_Screenshot.png)

You can also call this script from an HTML page, in your website. 😊