Skip to content

NodeJS server which use Express framework for hiding api keys from the client

License

Notifications You must be signed in to change notification settings

diliphiremath/api-proxy-server

Repository files navigation

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
npm run dev

Add public API info

Rename env_template 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=hubli without having to add your key in the client.

About

NodeJS server which use Express framework for hiding api keys from the client

Topics

Resources

License

Stars

Watchers

Forks