Code  JS

We will use Node.js & Express to create a server in order to hide public API keys, add rate limiting and caching

Timestamps:
0:00 - Intro
2:48 - Dependencies & scripts
4:45 - Basic Express server
6:15 - Environment variables
8:00 - Create the route 
10:40 - Request from server
15:50 - Forwarding query params
19:55 - Rate limiting
22:40 - API caching
24:28 - Use server with the client app
26:50 - Deploy to Heroku
30:20 - Environment variables on Heroku

💻 Code:
https://github.com/bradtraversy/node-api-proxy-server 

Demo App:
https://traversy-weather-app.herokuapp.com 

Subscribe: https://www.youtube.com/@TraversyMedia/featured 

#nodejs #api #javascript 

Build an API Proxy Server: Hide Your API Keys, Rate Limiting & Caching
5 Likes100.75 GEEK