Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

How to Hide API Keys with Node JS - Hiding API Keys with dotenv Environment Variables

Dave Gray via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This course shows how to build a server-side Node.js API relay that keeps API keys out of front-end code. It covers dotenv environment variables, GET and POST routes, rate limiting, route protection, and deploying and testing the relay on Glitch.

Syllabus

Intro
Install NodeJS
Install Package Dependencies
Create the API
Test a Route
Create the Weather API Route
Add an environment variable with dotenv
Create GET and POST Weather Routes
Test the GET and POST Dev Routes
Add a Rate Limiter
Protecting Your Routes
Your .gitignore file
Pulling the code from GitHub to Glitch
Testing the Live Glitch Routes

Taught by

Dave Gray

Reviews

Start your review of How to Hide API Keys with Node JS - Hiding API Keys with dotenv Environment Variables

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.