How To Build a Complete API In Golang (Docker, JWT, MySQL)

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

In this video we're going to be building a complete REST API in Golang using JWT, MySQL and at the end dockerize the whole thing so we can ship it to the cloud.

Links:

Resources:

🙋🏼‍♂️ Socials:

Hope you liked and thanks for watching!

Time Stamps 👇
00:00:00 Intro
00:01:31 API Server
00:05:46 Database
00:11:28 Env vars sourcing
00:14:04 Tasks Service
00:24:42 Functional testing tasks
00:26:10 Unit testing the tasks service
00:38:00 Add JWT authentication
00:47:21 Functional testing auth
00:47:50 User register endpoint
00:56:05 Docker service

Video titles ideas (for the algo):
REST API in Golang
Building a JSON API in Golang
How to build a REST API in Golang
Рекомендации по теме
Комментарии
Автор

My man is alergic to creating directories

David-xynw
Автор

With release of GoLang version 1.22, with an update to the standard library for handeling advanced api routes. Would you say its still use full to use a package like Gorrilla or is using the std enough?

mautjee
Автор

seeing the project file architecture at first, I move to another video. lol

phojie
Автор

Recently discovered your channel and I must say, I've learned a lot from your content. Keep up the great work

MohammadLsk
Автор

Really appreciate the video with actual code and not just some theory

xpmmzuy
Автор

New to Golang here. Not even sure if I’ll go deeper into it tbh.

Question: Why do I have the impression Go devs overuse single-character variable names? It’s just awful!!!

TheIsraelMendoza
Автор

Thanks mate, suuuuper useful
Appreciate your hard work!

rostyslav
Автор

I don't understand when to use * and when to use & . I know that & returns address and any ptr *int will store the address but that's very basic thing which is taught in every tutorial . I want to know what *sql.DB, *MySQLStorage, &MySQLStorage store in them or why to use them . Please if anybody can help me understand

asifmallick
Автор

I want to thank you for putting in the time. Keep doing it.

SajadJalilian
Автор

hello my new favourite golang content creator.

fullstack_journey
Автор

👍 more content like this in go only, started this one.

sagarchauhan
Автор

Actually a high quality content. Keep up the great work

helloworld
Автор

I'm curious I see that you have a very flat file structure, other than simplicity do you see a reason for not using folder structure like the cmd/ interna/ pkg/ handlers/ etc? Awesome video!

arturfil
Автор

Thanks, man. right when I need these types of videos. Subbed.

djanthony
Автор

I actually was searching for something exactly like this! Thanks a bunch!!! That was very useful! Keep up!

mrtitanhearted
Автор

Great video, btw: which font and ide theme are you using? Looks great!

dylangrijalva
Автор

You Haven't Explained about How to used WIthJWTAuth, You have just used it, 15:21 (there no WithJWTAuth) but at 16:43 voila

udbhavrohatgi
Автор

Hi sir, upload complete backend tutorial in golang

pcbvvkp
Автор

prettty cool, is it possible that u can create an industry level go api using gin, and postgres which are both in docker
container

supermanish
Автор

Most experienced developers are interested in project structure than the project itself 👎

mostafaaguerram