Build a CRUD Rest API in Go using Mux, Postgres, Docker and Docker Compose #golang #docker

preview_player
Показать описание
In this Live episode, I will create a set of CRUD Rest API in Go, using Mux, Postgres as a Database and Docker.

We will test it using TablePlus and Postman

GitHub repository

0:00 Intro
3:08 Start coding: project initialization
14:46 Controllers: Get All, Get one, Create, Update, Delete
21:03 Dockerfile
24:41 Docker Compose
29:54 Run the Postgres container, Build the Docker Image, run the Go app container
37:15 First test with Postman
42:40 the app crashes on some requests. FIX.
Рекомендации по теме
Комментарии
Автор

Great and useful video Francesco. Thank you very much indeed.

hernanlaborde
Автор

Great lesson, thanks! Can't wait for more!

artemafonin
Автор

Great video! Mobile Developer here studying Go Lang.

I studied syntax first from docs and other Youtubers but was a little bit picky on guides and video examples for CRUD, with others I just stopped within the first 2 minutes but yours was compact and precise!

At 37:20 - 39:40 I felt your pain haha, I hope I watched this live so I could've pointed it out earlier, this is a common mistake in mobile-fe development too xD

Good luck and I hope you'll grow your channel more!

ernestguevara
Автор

0:00 Intro
3:08 Start coding: project initialization
6:00 main.go: dependencies, struct, main, middleware function, routes
14:46 Controllers: Get All, Get one, Create, Update, Delete
21:03 Dockerfile
24:41 Docker Compose
29:54 Run the Postgres container, Build the Docker Image, run the Go app container
37:15 First test with Postman
42:40 the app crashes on some requests. FIX.

francescociulla
Автор

This is exactly what Bilal and I will be using for Book Loop.

LoftwahTheBeatsmiff
Автор

Hello Sir!
What extensions do you use for code hints in gray, then you just highlight it?
thank's

faizulla
Автор

how your vs code suggest whole function to be write ?? any extention there or shortcut key?

AmolGajare-gfbs
Автор

At 51:32, you should have removed the ":" character in line 142. Instead of creating an 'esle' block because there is a 'return' in the 'if' block )))

webcode_
Автор

environment variables straight to the docker compose file?
no multistage dockerfile?

put some actual effort into your video next time

greed
Автор

man just pushing ai coding and not even explaining it you should just stop making videos

ashutoshsingh