https://github.com/pauloportugal/nodejs-weather-app
An asynchronous Node.js Weather app
https://github.com/pauloportugal/nodejs-weather-app
asynchronous callback-functions es6 nodejs
Last synced: 3 months ago
JSON representation
An asynchronous Node.js Weather app
- Host: GitHub
- URL: https://github.com/pauloportugal/nodejs-weather-app
- Owner: PauloPortugal
- License: gpl-2.0
- Created: 2020-02-01T15:11:54.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T16:46:40.000Z (over 3 years ago)
- Last Synced: 2025-08-16T11:47:50.295Z (8 months ago)
- Topics: asynchronous, callback-functions, es6, nodejs
- Language: JavaScript
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A Nodejs Weather App
An event-driven asynchronous Node.js Weather app, to explore Node.js' asynchronous non-blocking single-threaded event-loop.
This is part of Andrew Mead's (mead.io) "The Complete Node.js Developer Course".
## Goal
Return a weather forecast based on user's input location
* Uses [mapbox.com](mapbox.com) for forward geocoding
* Uses [darksky.net](darksky.net) to return the weather forecast for a given town/place.
* Uses `ECMAScript6` Object Property Shorthand and Destructuring
## Setup
* Create a (free) account with [mapbox.com](mapbox.com) and [darksky.net](darksky.net) and provide the keys/tokens through an environment variable
* Run `git update-index --assume-unchanged config/tokens.json` to avoid commiting the tokens to a remote repo
## How to execute
Through the command line:
```
DARKSKY_TOKEN="your-darksky-token" MAPBOX_TOKEN="" node app.js "Lille"
```