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

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn how to hide API keys using Node.js and dotenv environment variables in this comprehensive tutorial. Discover how to set up a Node.js API key relay to securely access API data while protecting sensitive information. Follow along as the instructor guides you through installing Node.js, setting up package dependencies, creating an API, implementing weather routes, and adding environment variables. Explore techniques for testing routes, implementing rate limiting, and protecting your application. Gain insights into proper use of .gitignore files and deploying your code to platforms like Glitch. By the end of this tutorial, you'll have the knowledge to create secure server-side applications that safeguard API keys while maintaining functionality.

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.