Proxy server with rate limiter for weatherstack api requests
- grab you api key by creating weatherstack account
- fork the repo
git clone
forked repo- create an
.env
file in project root directory - paste into your
.env
fileAPI_KEY=here_your_weatherstack_api_key
(see step 1) - run
npm run serve
- you server is now running on
http://localhost:3000
- grab you api key by creating ipinfo account
- grab
loc
value (somewhere inside your app) by making request tohttp://ipinfo.io/loc?token=here_your_ipinfo_token
- provide
loc
value as value tocoords
query parameter to make a valid request to your serverhttp://localhost:3000/api/forecast?coords=you_grabed_it_previously