Netlify Serverless Functions with Netlify Dev

Поделиться
HTML-код
  • Опубликовано: 21 авг 2024
  • It's never been easier to create Serverless Functions. With Netlify, you can create and deploy Serverless Functions in minutes! In this video, I'll show you how to run your Netlify Serverless Functions locally using the Netlify CLI and Netlify Dev command.
    Scrimba Frontend Developer Career Path - bit.ly/scrimba...
    _____________________________________________
    Newsletter 🗞
    Interested in exclusive content and discounts? 🤯 Sign up for the newsletter!
    www.jamesqquic...
    _____________________________________________
    Connect with me 😀
    Live streams on Twitch - / jamesqquick
    Follow me on Twitter - / jamesqquick
    Join the 💬 Discord Server 💬 - / discord
    _____________________________________________
    COURSES 💻
    Learn how to build Fullstack apps with React and Serverless Functions - www.jamesqquic...
    Learn everything you need to know about Visual Studio Code - www.udemy.com/...
    Build a Quiz App - www.udemy.com/...
  • НаукаНаука

Комментарии • 44

  • @JamesQQuick
    @JamesQQuick  4 года назад +5

    Make sure to grab the free Netlify cheat sheet! learn.jamesqquick.com/netlify-serverless-functions-cheat-sheet

    • @malikbrahimi7504
      @malikbrahimi7504 3 года назад

      So is Netlify an actual cloud provider? It seems like they just run on top of AWS, Google, etc. in which case are they just retailing cloud services?

    • @BernhardHofmann
      @BernhardHofmann 2 года назад +2

      It's it really free if I have to give you my email address? 🤔

  • @TomHermans
    @TomHermans 2 года назад +1

    revisited this video while working on a few functions. Now even more thankful it exists.

  • @x1x1nh0
    @x1x1nh0 2 года назад +2

    Thank you so much James for taking the time to make these awesome videos

  • @Dylan-ds9fp
    @Dylan-ds9fp 4 года назад +3

    I use Netlify for hosting and have kind of dabbled with Netlify functions. They work amazingly well and seamlessly with Next.js API routes which was a very pleasant surprise! Never used Netlify dev before, though. Sounds like a super useful tool for testing things like Forms without having to deploy first!

    • @JamesQQuick
      @JamesQQuick  4 года назад +1

      Netlify is so amazing! You’re definitely going to enjoy using netlify dev. It’s great!

  • @MaxProgramming
    @MaxProgramming 3 года назад

    I watch it again and again now.
    A year ago I didn't understand Netlify functions (I commented too😅) but now I love them!

  • @iiaaannnn
    @iiaaannnn 3 года назад

    I migrated my website from Netlify to Firebase. I heard Netlify(AWS) functions have less startup time. So I'm migrating my website from Firebase to Netlify. Lol. Great video!

  • @jcsmiley9756
    @jcsmiley9756 4 года назад +1

    I have not use Netlify Dev but is very interested in that process. I use Netlify for hosting and serverless functions and I love them.

  • @mumbaikachallenge5526
    @mumbaikachallenge5526 2 года назад

    Aaye letsgo
    Wow you in the teacher section sheesh❤️

  • @bobziroll
    @bobziroll 3 года назад

    Lol, this video is surreal. Not only are you connecting to Airtable, which is exactly what I'm needing to do with my Netlify functions setup, but you mention me by name as a course creator on Scrimba :P

  • @PilotGT
    @PilotGT 2 года назад +1

    Great video! Thanks for posting! What is the link to the “Build a JAMstack Course Tracker” that you mentioned in the video? Thanks in advance!

  • @raiyansarker1698
    @raiyansarker1698 3 года назад +2

    redirect using toml file is not working on my project, did the same of what you did!

  • @thales-maciel
    @thales-maciel 3 года назад +3

    I've seen some videos where people could access the function from anywhere, like using postman/insomnia or making a get request in the browser. How to protect this functions?

    • @JamesQQuick
      @JamesQQuick  3 года назад +2

      It’s protected by cors in the browser but mainly you need to add some sort of authentication. You could use Auth0 :)

  • @parrot785
    @parrot785 3 года назад +1

    Useful tutorial. Thank you! Somehow redirections didn't work in my app I was always getting 404 error

  • @blidosawr
    @blidosawr 3 года назад

    Subbed, you're a lifesaver

  • @MaxProgramming
    @MaxProgramming 4 года назад +1

    I actually don't understand what and why are Netlify functions. Hopefully I will understand them after this video. 💙

    • @JamesQQuick
      @JamesQQuick  4 года назад +1

      If you still have questions let me know. This video isn’t the best overall explanation of serverless functions as a whole

    • @MaxProgramming
      @MaxProgramming 4 года назад

      @@JamesQQuick Sure! Maybe on Discord. Thanks!

    • @JamesQQuick
      @JamesQQuick  4 года назад +1

      @@MaxProgramming See you there :)

  • @nested9301
    @nested9301 Год назад

    what is the diffrence between supabase edge function and netlify functions?

  • @sonyaninja66
    @sonyaninja66 3 года назад

    Thanks so much James! I've spent the past three days trying every tutorial + reading every article to try and understand what exactly Netlify does. Watching this video = lightOn. I'm trying to use Netlify with Sveltekit - I know it's not yet officially released, but perhaps I can get a basic ui developed and hopefully by the time I'm done Sveltekit's 'back-of-the-front-end' stuff will be useable. The [netlify dev] command does not seem to be working with Sveltekit yet, so it seems I can only test the deployed preview?? Do you have any advice?

  • @Viralplace
    @Viralplace 3 года назад

    if I have a simple project that doesn't use compiler like webpack or parcel, how can I use de .env? dotenv doesn't work on the browser but just with node (backend) and not in jam stack or serverless project... I would hide private key on production by function of netlify

  • @jasonlough6640
    @jasonlough6640 3 года назад

    Damn this is good.

  • @pickavana8056
    @pickavana8056 Год назад

    Do you know if this works with svelte/vite (not sveltekit)? When I run netlify dev it hangs if I try to use "Svelte: npm run dev" or "Svelte: npm run build" waiting for framework port 5173 even though I have [dev] targetPort=5173 in netlify.toml. It 'works' if I use any of the vite options but then its not running the serverless function.

  • @dineshmangal6429
    @dineshmangal6429 3 года назад

    Hello, Can I just deploy package.json file on netlify and run the commands "NPM INSTALL, NPM RUN BUILD" there on netlify...is it possible?

  • @MrFawads
    @MrFawads 3 года назад

    Which platform is better Firebase functions or Netlify functions? In terms of Productivity and popularity.

    • @JamesQQuick
      @JamesQQuick  3 года назад

      I personally prefer netlify functions. I’ve not used fire base functions

    • @MrFawads
      @MrFawads 3 года назад

      What about popularity ?

    • @JamesQQuick
      @JamesQQuick  3 года назад +1

      @@MrFawads I'm not exactly sure to be honest. I've personally never heard of anyone using functions in Firebase, but I've heard lots using Netlify. That's just my experience so take it with a grain of salt lol

    • @MrFawads
      @MrFawads 3 года назад

      Thanks man!

    • @garrettcarder3144
      @garrettcarder3144 3 года назад

      From what I've heard it seems they're most popular on AWS. I believe thats the origin of lambda.

  • @bikashkatwal2461
    @bikashkatwal2461 3 года назад

    Hi could you also please create a tutorial on jwt authentication or is there any?

  • @brianwyse5810
    @brianwyse5810 3 года назад

    What this back end stuff I don’t want to know all this

  • @SebastianPerezG
    @SebastianPerezG 4 года назад

    What the name of the start page that you have in chrome ?

    • @JamesQQuick
      @JamesQQuick  4 года назад +1

      It's a chrome extension called daily.dev :)

  • @josephsardella8047
    @josephsardella8047 9 месяцев назад

    Its not free anymore... ): lame.