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

Learn to build and deploy serverless functions using JavaScript and Netlify in this comprehensive tutorial. Begin by structuring HTML, adding CSS, and implementing JavaScript for your web application. Explore CSS animations and asynchronous JavaScript with Fetch API. Set up version control with Git, create a GitHub repository, and link your project to Netlify for continuous deployment. Install necessary tools like Node.js and Netlify CLI, initialize npm, and manage dependencies. Create serverless functions, modify your main JavaScript file to interact with them, and test using Netlify CLI. Discover practical serverless examples and learn how to manage environment variables in Netlify. Gain hands-on experience in developing and deploying serverless applications with this step-by-step guide.

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.