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

YouTube

Serverless Functions in JavaScript - Build Netlify Serverless Functions with JavaScript

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 beginner tutorial shows how to build and deploy JavaScript serverless functions with Netlify and GitHub. It demonstrates API relays for hiding API keys, local testing with the Netlify CLI, and environment variable configuration.

Syllabus

Intro
Structure HTML
Add CSS
Add JavaScript
Add a CSS Animation
JS Fetch with Async / Await
Quick Refactor
Create a git repo and push to GitHub
Link your project to Netlify with Continuous Deployment
Install NodeJS
Install Netlify CLI
Initialize npm
Create a .gitignore file
Install node-fetch package dependency
Create the serverless functions folder
Create a serverless function
Modify the fetch function in our main.js
Use Netlify CLI to test our serverless function
A more practical serverless example
Where to add environment variables in Netlify

Taught by

Dave Gray

Reviews

Start your review of Serverless Functions in JavaScript - Build Netlify Serverless Functions with JavaScript

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.