Skip to content
Projekte

bradtraversy/node-api-proxy-server

Auf GitHub ansehen

Über uns

Proxy server to hide public API keys with rate limiting, caching

Systeme und Infrastruktur

So werden diese Zahlen gemessen

Gemessener Sternzuwachs

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Verlauf wird gesammelt

Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.

README.md

Original

Node API Proxy Server

Server used for hiding API keys, rate limiting and caching. This uses the OpenWeather API but you can easily change it to whatever public API you are using

Usage

Install dependencies

npm install

Run on http://localhost:5000

npm run dev

Add public API info

Rename .env.example to .env and edit the values

If the public API URL is https://api.openweathermap.org/data/2.5/weather?q={city}&appid={APIkey}

You can add on any other query params as needed when hitting the /api endpoint such as https://yourdomain/api?q=detroit without having to add your key in the client

  • Add new routes as you see fit
  • Change rate limiting and caching to desired values

This project is from this YouTube tutorial

Ähnliche Projekte entdecken

Wird geladen…