Тёмный

Getting started with node.js on Google Cloud Functions - console & gcloud cli 

Jarrod Overson
Подписаться 5 тыс.
Просмотров 45 тыс.
50% 1

This tutorial runs through the Google Cloud console UI and the gcloud command line interface to show you how to get started using node.js on Google Cloud Functions. I also show how to wire up a function to Cloud Pubsub with an example using Google Cloud Scheduler.
Useful links:
Google Cloud Functions home: cloud.google.com/functions/
Pubsub docs: cloud.google.com/pubsub/docs/
gcloud sdk: cloud.google.com/sdk/
nvm: github.com/creationix/nvm

Наука

Опубликовано:

 

16 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 57   
@dittilio
@dittilio 4 года назад
Wow, such high quality content and less than 600 subscribers? Thanks for these tuts. They're excellent.
@jsoverson
@jsoverson 4 года назад
Thanks so much! I'm not a very good marketer I guess 🙂
@dittilio
@dittilio 4 года назад
@@jsoverson 4000 views though, and exponential subscriber. If you don't have 10k in a year then I'll eat my own hat. Well, I'll buy a hat, then eat it.
@mohammedsadiq8178
@mohammedsadiq8178 4 года назад
Pretty sleek. I really enjoyed your way of presenting.
@andythebritton
@andythebritton 3 года назад
Great intro. I'm living in Apps Script land and now think I'm ready to move up to the big time!
@AhmadAwais
@AhmadAwais 5 лет назад
Ahh, your content & script is amazing! 💯
@jsoverson
@jsoverson 5 лет назад
thanks so much!
@Play_Streams
@Play_Streams 4 года назад
This is a pretty good intro. Thanks Jarrod
@thepickicool97
@thepickicool97 4 года назад
The best explanation I found about Google Cloud Functions ! Thank you ! I still have a hard time to decide between App Engine or Cloud Functions.
@jsoverson
@jsoverson 4 года назад
Thanks! They're not mutually exclusive, they can work well together.
@apurvaprajapati3354
@apurvaprajapati3354 Год назад
Your demo is really useful! And you speak too AMAZING!!!
@VerySadBatman
@VerySadBatman 4 года назад
Such good!!! Awesome tutorial.
@osherezra8460
@osherezra8460 4 года назад
So happy I'v subscribed to this channel thank a bunch bro keep it up
@ezequieldiprospero571
@ezequieldiprospero571 2 года назад
i followed you all process, cool!
@zgwenwen
@zgwenwen 5 лет назад
thank you, that's exactly what I need!!!!!
@ginger-viking
@ginger-viking 4 года назад
Thanks for the great video
@michaeleze3
@michaeleze3 4 года назад
Good content. Well explained
@jsoverson
@jsoverson 5 лет назад
I thought this was going to be like 30-45 minutes long with how much video I recorded 😂. But seriously, cloud functions are awesome.
@AlienAndrew51
@AlienAndrew51 4 года назад
I'm considering doing something like this with Puppeteer. I would have to refactor my project: github.com/andrewpolemeni/ScrapeMe. It works locally but when deployed I'm getting memory leaks in Heroku. I just find cloud functions a little odd though it's something I'd have to get used too. Although, AWS lambda functions are a little easier to use.
@jsoverson
@jsoverson 4 года назад
Just in case you're still playing with puppeteer + cloud functions: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-i8THvr03FaY.html
@necatib9463
@necatib9463 4 года назад
man! Why the hack I didn't find you before? And more, why the hack a programmer like you have that less subscriber, that's crazy !!! Thanks for all the videos!
@rahulsriram6295
@rahulsriram6295 2 года назад
Subbed instantly
@falconcoach486
@falconcoach486 3 года назад
Dude. Congrats! What equipment and software you are using for recording ? Awesome
@wesleybarnes5376
@wesleybarnes5376 4 года назад
Really cool, would I use a function to setup an API calling data from a gcloud SQL db? Or should I use their App engine? Trying to figure this out. Thanks allot for the video
@andresv444
@andresv444 3 года назад
Thanks for your video, it's great. I have a question, is it possible to create a cloud function to make use of push notifications to cell phones using cloud messaging?
@andriisukhariev
@andriisukhariev 3 года назад
thank you man. Strong word! Hope all this youtube thing will bring you a dala ($) for a house near the beach !
@callezenwaka
@callezenwaka 3 года назад
Hi @Jarrod Overson, How do you secure the function from unauthorized users?
@ikarienator
@ikarienator 5 лет назад
I had a LaTeX rendering service written in Google Cloud Function way back. It renders LaTeX using MathJax into SVGs so I can embed math into my blog.
@jsoverson
@jsoverson 5 лет назад
that's actually really useful. Do you still have the source around?
@pixeesoft
@pixeesoft 5 лет назад
That sounds absolutely amazing! Have you ever done any blog post on that?
@deepakverma-uo7pf
@deepakverma-uo7pf 4 года назад
nice sir
@returnZeroo
@returnZeroo 4 года назад
You are cool
@revenge977
@revenge977 3 года назад
Heroku is also pretty cool
@muhammadumarrazzaq5016
@muhammadumarrazzaq5016 4 года назад
Hi there @jarrod overson Actually i am stucked on an error in Google Cloud Functions using firebase can u help me out.
@gmayas
@gmayas 2 года назад
I want to connect to BigQuery with a service account with NodeJS and create controllers that contain queries and inserts to tables in NodeJS, do you have a reference? In short I want to create a CRUD with BigQuery with NodeJS.
4 года назад
Can I Run my little script, like an API request by cron on cloud function? Instead of use an entire Machine to stay running a little script? Can u tell me how? (I'm noob btw)
@joselitogamao8442
@joselitogamao8442 3 года назад
How to implement authentication in google cloud function?
@sergiishpak
@sergiishpak 4 года назад
Cloud Functions vs Cloud App Engine ?
@worldshell2313
@worldshell2313 5 лет назад
would be better if you focus only on the screen little more, or make it side by side splitscreen
@emasdev4327
@emasdev4327 3 года назад
This tech is amazing. I can throw my NAS and my server to the garbage now...
@mateuszzdyb3547
@mateuszzdyb3547 4 года назад
hi. great stuff jarrod. one tiny qyuestion if i may: do you know if these functions can have an access to postgresql db on the google cloud? i know that mysql works fine, but every time i try to ru postgresql i have Error: connect ECONNREFUSED 127.0.0.1:5432 , which makes no sense at all...
@jsoverson
@jsoverson 4 года назад
127.0.0.1 is the loopback address, it will always point to the computer/device you are requesting from. Using that address on a cloud function is probably not what you want, i'm assuming your db is running on your local machine? You need an externally accessible IP address for a cloud service to connect to.
@rociosolis660
@rociosolis660 5 лет назад
Hey Jarrod! Thought you were to execute the full deploy (including the login to gclod) through the console, cause seems like you can't login to gcloud without opening the browser to select your account.
@jsoverson
@jsoverson 5 лет назад
Yeah, that's part of how it is architected.
@rociosolis660
@rociosolis660 5 лет назад
@@jsoverson it was a struggle. We can execute a full automated pipeline by logging with: gcloud auth activate-service-account --key-file [Google_cloud_credentials_for_service_account_its_a_json] And then make the deploy of the functions gcloud functions deploy [function_name] --runtime [code_version] --trigger-http --project [google_project_name] --entry-point=[export_value]
@gladwinchhinchani345
@gladwinchhinchani345 4 года назад
Hello Jarrod thanks for the video, i am getting "our client does not have permission to get URL" 403 when i open the url in the browser
@soudouglas
@soudouglas 4 года назад
Hey, in case you or anyone else runs through this issue again; google has changed the setting for cloud functions a little bit. Now when creating a new one, you have an authentication section where you have to check the option for allowing unauthenticated invocations. If you do that, you can trigger them through the browser normally
@djoscarmix
@djoscarmix 4 года назад
i wrote a nodejs function for scrapping a website, i uploaded it into google cloud and it works. the problems is when i want to call this from a vuejs UI. i get cors error. how can i enable it in Google cloud ? thanks in advance
@JBuchmann
@JBuchmann 4 года назад
Were you able to resolve this? I ran into the same problem when using Firebase Cloud Functions, hosting with Firebase Hosting. Apparently Firebase Cloud Functions are the same as Google Cloud Functions. I'm trying to scrape using Puppeteer. In my function, I added this (as explained in the docs): (cloud.google.com/functions/docs/writing/http) res.set('Access-Control-Allow-Origin', '*'); When trying to scrape from an Angular app (it's actually hosted on Firebase, in the same location as where the Cloud Functions are), I get CORS errors in the web page console. So frustrating, and none of these RU-vid tutorials mention it.
@evelynlima5616
@evelynlima5616 4 года назад
Hi, what's the ide you're using?
@schoolofbillt2656
@schoolofbillt2656 4 года назад
VS Code
@vsowill
@vsowill Год назад
Now that I understand the cron time formate it can’t change 😂😂😂
@MaisUmSomente
@MaisUmSomente 3 года назад
recomendo AWS
@schoolofbillt2656
@schoolofbillt2656 4 года назад
3:19 Jarrod: Chose the latest version not in Beta Also Jarrod: Chooses Node.js 10 (Beta)
@fahad.hossain
@fahad.hossain 3 года назад
stop switching screens to face.
@abhijithcb6
@abhijithcb6 Год назад
👎👎👎👎
Далее
Picking the right serverless platform (Part 1)
14:02
Просмотров 14 тыс.
Спецэффекты в Симс 4
00:36
Просмотров 279 тыс.
Getting started with Cloud Functions
19:26
Просмотров 34 тыс.
Website Redesign good-to-great
11:56
Просмотров 21 тыс.
How to use puppeteer on Google Cloud Functions
10:15
Просмотров 17 тыс.
Google Cloud Functions - Serverless in GCP
17:52
Просмотров 22 тыс.
Cloud Functions local debugging
10:17
Просмотров 10 тыс.
Automate Python script execution on GCP
14:14
Просмотров 21 тыс.
How to run code on Google Cloud
7:40
Просмотров 58 тыс.
Здесь упор в процессор
18:02
Просмотров 342 тыс.
Colorful Vulcan w rtx 4070ti Super
13:30
Просмотров 58 тыс.
😮Новый ДИРЕКТОР Apple🍏
0:29
Просмотров 39 тыс.