https://github.com/satansdeer/weather-api
Small wrapper for https://darksky.net weather api. User in https://basicreact.com course.
https://github.com/satansdeer/weather-api
api-wrapper course expressjs javascript nodejs tutorial
Last synced: 2 months ago
JSON representation
Small wrapper for https://darksky.net weather api. User in https://basicreact.com course.
- Host: GitHub
- URL: https://github.com/satansdeer/weather-api
- Owner: satansdeer
- Created: 2018-06-13T06:28:40.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-11-02T20:38:58.000Z (over 3 years ago)
- Last Synced: 2025-02-05T05:28:11.396Z (4 months ago)
- Topics: api-wrapper, course, expressjs, javascript, nodejs, tutorial
- Language: JavaScript
- Homepage: https://basicreact.com
- Size: 270 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Darksky API Wrapper
[](https://heroku.com/deploy)
They take security very seriously at Dark Sky. As a security precaution they have disabled cross-origin resource sharing (CORS) on their servers.
This is small and simple wrapper to make calls to Darksky API.
## How To Use
First you have to register on [darksky.net](https://darksky.net) and get an API key. Next register on [heroku.com](https://heroku.com). After that just press the Deploy To Heroku button above.
You'll be prompted with app creation screen.

Enter your app name and API key you got from Darksky. Click the __Deploy app__ button.
Now you can click the __View__ button and go to your app url.
To get forecast you need to provide latitude and longitude:
`/forecast/,`
You should get `JSON` response with forecast.