Serverless Functions in JavaScript | Build Netlify Serverless Functions with JavaScript

preview_player
Показать описание

Build Serverless Functions in JavaScript with this Netlify Serverless Functions tutorial. Serverless Functions can be written in JavaScript and set up for deployment with GitHub and Netlify.

(0:00) Intro
(1:35) Structure HTML
(3:19) Add CSS
(7:26) Add JavaScript
(11:09) Add a CSS Animation
(12:53) JS Fetch with Async / Await
(14:23) Quick Refactor
(15:10) Create a git repo and push to GitHub
(17:05) Link your project to Netlify with Continuous Deployment
(18:05) Install NodeJS
(18:25) Install Netlify CLI
(19:48) Initialize npm
(20:14) Create a .gitignore file
(20:38) Install node-fetch package dependency
(21:11) Create the serverless functions folder
(21:22) Create a serverless function
(24:35) Use Netlify CLI to test our serverless function
(25:11) A more practical serverless example
(27:27) Where to add environment variables in Netlify

✅ Follow Me:

Was this tutorial about how to build Serverless Functions with JavaScript helpful? If so, please share. Let me know your thoughts in the comments.

#serverless #functions #javascript
Рекомендации по теме
Комментарии
Автор

This was GREAT! I have been watching tutorials for a week now to get data from an API, and here you explained it so plainly! Thanks!

marie-elizeventer
Автор

Brad Traversy sent me here, Dave. I enjoyed learning about using serverless functions which are new to me. Looking forward to seeing project based tutorials from you in the future.

andrewclarke
Автор

I didn't get the idea behind the serverless before since we still need to create server functions and I didn't find anyone do it the way you did by creating it locally then convert it to a nodejs and finally upload it to a serverless server

Thanks and I hope you can make a dedicated series on serverless functions

ahmad-murery
Автор

this was a smooth tutorial, that rock hair suits you, You are a rock Star

hellelo.
Автор

Hope all is getting better Dave... awesome and timely content as always!!

kewltopix
Автор

greeeatttt tutorial for understanding the serverless thing

CynthiaSotoCaballerolYEAHl
Автор

awesome as always Dave. Thank u so much :-)

rangabharath
Автор

I started to learn JS recently. Made a small website in 3 languages(English, Italian, Ukrainian) on netlify, but the problem is that I duplicated pages for every language, was looking for a solution, for example to keep translation in JSON. But I see to use serverless functions I need to know backend as well?

zakhariihusar
Автор

On my lubuntu: sudo npm i netlify-cli -g

stepanmutsikivsky
join shbcf.ru