Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/roshan-raj/nodejs-weatherapp
- Owner: roshan-raj
- Created: 2018-01-21T13:41:22.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-20T05:16:38.000Z (over 1 year ago)
- Last Synced: 2024-11-12T21:41:04.656Z (2 months ago)
- Topics: api, javascript, json, node-module, nodejs
- Language: JavaScript
- Size: 816 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
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. 😊