Skip to content
プロジェクト

bradtraversy/node-api-proxy-server

GitHubで見る

bradtraversy/node-api-proxy-server has 297 GitHub stars and 104 forks. GitHot measured 0 stars in 24 hours and 0 in 7 days. Last checked 2026-11-22 10:05 UTC. Last push 2022-01-25.

この数値の測り方

計測したスター増加

24時間
0
7日間
0
15日間
履歴を収集中
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

概要

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

開発ツール

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

関連プロジェクトを探す

読み込み中…