Skip to content

Proxy server with rate limiter for weatherstack api requests

Notifications You must be signed in to change notification settings

devellopah/weatherstack-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

weatherstack-proxy

Proxy server with rate limiter for weatherstack api requests

Backend part

  1. grab you api key by creating weatherstack account
  2. fork the repo
  3. git clone forked repo
  4. create an .env file in project root directory
  5. paste into your .env file API_KEY=here_your_weatherstack_api_key(see step 1)
  6. run npm run serve
  7. you server is now running on http://localhost:3000

Frontend part

  1. grab you api key by creating ipinfo account
  2. grab loc value (somewhere inside your app) by making request to http://ipinfo.io/loc?token=here_your_ipinfo_token
  3. provide loc value as value to coords query parameter to make a valid request to your server http://localhost:3000/api/forecast?coords=you_grabed_it_previously

About

Proxy server with rate limiter for weatherstack api requests

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published