Building a Real-Time YouTube Monitoring System with Go and WebSockets!

  Рет қаралды 22,317

TutorialEdge

TutorialEdge

5 жыл бұрын

👨‍💻 For the price of a ☕ every month, sign up and gain access to a growing list of premium courses on my site - tutorialedge.net/pricing/ 👩‍💻
● SUBSCRIBE to see more of my Videos & hit that LIKE button to support the channel!
KZfaq API Overview - developers.google.com/youtube...
Text Tutorial: tutorialedge.net/golang/build...
Hi Everyone! In this tutorial, we are going to be having a bit of fun and we are going to be creating a real-time KZfaq stats monitoring system in Go.
So, we are going to be looking at a number of different topics within this tutorial such as creating a WebSocket server and using WebSockets to communicate in real-time with a frontend application, as well as how you can interact with an existing REST API to get the subscriber stats we need.
‎● My Twitter ► ⁦‪ / elliot_f
‎● My Website ► tutorialedge.net

Пікірлер: 28
@Tutorialedge
@Tutorialedge 5 жыл бұрын
Hope you all enjoy this latest tutorial! I missed explaining how you set environment variables! You can do this using the export CHANNEL_ID=UCwFl9Y49sWChrddQTD9QhRA export KZfaq_KEY=YOUR-KZfaq-API-KEY on MacOS or using the set command on Windows!
@zeldris6218
@zeldris6218 2 жыл бұрын
Plz make more tutorials on go ..
@BradCypert
@BradCypert 8 ай бұрын
I know this is an older video now, but I just wanted to say that this is still a fantastic tutorial. Well done!
@baz5719
@baz5719 6 ай бұрын
Having recently picked up Go, I really appreciate this content!
@puttenicole
@puttenicole 5 жыл бұрын
Enjoyed this. Good stuff . Thanks!
@merger1234
@merger1234 5 жыл бұрын
Very nice video. Showed several interesting things :) Keep it up!
@tatemo_labs
@tatemo_labs 5 жыл бұрын
Awesome tutorial, thanks... quick question: when are you going to create a Go video course? so you can show us the potential in real world backends.
@Nico-rr7bh
@Nico-rr7bh 5 жыл бұрын
Hey thanks for the video. Does the for range on the ticker no block? So why do you need the infinite for loop? What you could improve on as far as the videos is adding some camera movement focusing content you are talking about. Right now there is almost half the screen just sitting there and the code is a little small. A great example would be watching the laracasts tutorials
@huskyjp
@huskyjp 3 жыл бұрын
Hi! Thanks for the insightful tutorial! One issue I found that the final part (client accesses to the ws), it currently returns 400 status and the message is like this: "websocket: the client is not using the websocket protocol: 'upgrade' token not found in 'Connection' header", is there any configuration required to start handshaking? or do you know what is causing this status error? (I believe func Upgrade returns nil but not sure why) Thanks in advance!
@oabominavelhomemdasneves4117
@oabominavelhomemdasneves4117 5 жыл бұрын
could you teach how to paginate many objects via get in an API?
@tomazbracic6568
@tomazbracic6568 5 жыл бұрын
Hey, I really like your VSCode color theme. Can you please share which one you use? :) Thanks in advance.
@Tutorialedge
@Tutorialedge 5 жыл бұрын
Hey, I believe it is called cobalt2 by Wes Bos! I am out and can’t double check at the moment unfortunately
@shashanktiwari4442
@shashanktiwari4442 Жыл бұрын
Hi, the official documentation has a lot of steps to integrate with KZfaq api, can u tell why is it so if it can be accessible with API key only?
@intermarer9145
@intermarer9145 5 жыл бұрын
I wish you'd have stuck to the standard library and not Gorilla so I could maybe understand a bit more about websockets, but thumbs up for sure!
@syedamjad1271
@syedamjad1271 3 жыл бұрын
Hi thanks for sharing the video.Will you please provide tutorial on Web socket go-client to play Quiz ( user Registeration, Receive question, send answers).
@Tutorialedge
@Tutorialedge 3 жыл бұрын
This is a great idea! Thank's for this!
@plavali_znaem
@plavali_znaem Жыл бұрын
Hi, I am a beginner. It'd be helpful to see what is inside go.mod file?
@BNakato
@BNakato 5 жыл бұрын
I am a newbie to Go and this might be Go syntax but is it necessary to check for error on each function call or is there some sort of try catch.
@joaofnds
@joaofnds 5 жыл бұрын
Basically yes, that's the "idiomatic" way of doing it in go. Everyone has some mixed feelings about it when learning Go, but if you think about it if something is telling you that it may fail, why wouldn't you deal with the error?
@LakmalHckz
@LakmalHckz 4 жыл бұрын
@@joaofnds Sometimes human miss things sadly :(
@bennetb01
@bennetb01 5 жыл бұрын
At 12:58 you should really check the length of Items. It is possible that the API is broken or hits and error and you are returned with zero items.
@Tutorialedge
@Tutorialedge 5 жыл бұрын
good catch! Ideally you would also catch the status of the response as well to ensure you weren't hit with a 403 unauthorized response or something else outwith the "happy path"
@yusufcansert9276
@yusufcansert9276 Жыл бұрын
Can you make real time chat with data base please
@Wreighn
@Wreighn 5 жыл бұрын
Is it just me, or did you forget to explain how to set up the environment variables?
@Tutorialedge
@Tutorialedge 5 жыл бұрын
I did, check out my pinned comment for this video! :)
@lefinal
@lefinal 3 жыл бұрын
Did not like that you do not explain why you pass which parameter :) "I forgot to add nil here" - well, why is nil needed here? Of course, I could look up the documentation, but in a tutorial, I'd expect this to be told. But otherwise interesting tutorial!
@sntshkmr60
@sntshkmr60 5 жыл бұрын
Dude! Zoom in into your browser and text editors when making videos.
@TheFentonz
@TheFentonz 4 жыл бұрын
github repository is dead.
Go WebSocket Tutorial with the gorilla/websocket Package
13:46
TutorialEdge
Рет қаралды 63 М.
Survival skills: A great idea with duct tape #survival #lifehacks #camping
00:27
Heartwarming: Stranger Saves Puppy from Hot Car #shorts
00:22
Fabiosa Best Lifehacks
Рет қаралды 21 МЛН
THEY made a RAINBOW M&M 🤩😳 LeoNata family #shorts
00:49
LeoNata Family
Рет қаралды 33 МЛН
err != nil Is GOOD? (And Why)
7:19
ThePrimeTime
Рет қаралды 86 М.
Creating a Go API using an ORM - Tutorial
22:31
TutorialEdge
Рет қаралды 72 М.
Pub/Sub && 1M WebSockets | Технострим
25:55
VK Team
Рет қаралды 4 М.
Don't Use Websockets (Until You Try This…)
6:46
Code With Ryan
Рет қаралды 288 М.
Go sync.WaitGroup Basics - tutorial
11:34
TutorialEdge
Рет қаралды 24 М.
Security in Go - Building a Port Scanner
12:08
TutorialEdge
Рет қаралды 14 М.
Learning Golang To Cure My Crippling Depression
6:35
conaticus
Рет қаралды 43 М.
Survival skills: A great idea with duct tape #survival #lifehacks #camping
00:27