Node.JS proxy for DarkSky
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.env.example
.gitignore
LICENSE
README.md
index.js
package.json
yarn.lock

README.md

DarkSky-proxy

Node.JS proxy for DarkSky's Forecast API

Setup

  1. clone the repository
  2. make it the current working directory: $ cd DarkSky-proxy
  3. install dependencies: $ npm i or $ yarn
  4. get an API key: https://darksky.net/dev/
  5. copy .env file: $ cp .env.example .env
  6. add your DarkSky API key to .env: DARK_SKY_SECRET=abcdefg
  7. start the server: $ node index.js
  8. from another terminal, try it: $ curl http://localhost:5051/forecast/[lat],[lng]
  • example: $ curl http://localhost:5051/forecast/32.7765,79.9311