Тёмный

Connect to MySQL on Golang and Create Docker-Compose file 

david hwang
Подписаться 3 тыс.
Просмотров 1,5 тыс.
50% 1

Now that we have a Dockerfile for our Go app from our last video, we want to run the Go app along with a MySQL container.
In this video, we will extend our Go app to insert & get users into/from the database before writing our docker-compose yaml. We will validate everything works at the end of the video.
github: github.com/dhi...

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

 

6 окт 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 8   
@dhij
@dhij 8 месяцев назад
0:00 Introduction 0:22 Start: extend the Go app to integrate MySQL 0:33 Change ID to UUID 0:42 Create a DB with sql.Open() 1:13 Defining host in the db source: running mysql as stand-alone container vs. in a docker-compose 2:54 Import mysql driver 3:14 Extend ServeHTTP to accept POST requests 3:33 Add the createUser() and getUser() handlers 5:26 Go microservices project folder structure 6:35 Modify existing Dockerfile 7:25 Write docker-compose.yaml 8:24 expose vs. ports field 12:34 Create a `users_db` database and a `users` table in the mysql container 14:13 Validate the app by sending GET and POST on localhost:8080/users using curl
@TerenceSilonda
@TerenceSilonda 5 месяцев назад
I had an issue with the app connecting to the DB. One minute into your video my problem is solved.
@IkraamDev
@IkraamDev 8 месяцев назад
The text is very small. It’s hard to see.
@dhij
@dhij 8 месяцев назад
oops :)
@sinamobasheri
@sinamobasheri 6 месяцев назад
I have question what's best practice and natural way to automate last part, the database stuff, automating database initialization stuff like creating roles, tables etc. and even fill it with previous data (if any) thanks in advance 💟
@adi.wahyudi
@adi.wahyudi 7 месяцев назад
❤❤❤
@DJMerrell86
@DJMerrell86 26 дней назад
Your voice audio only plays in my left ear
@dhij
@dhij 25 дней назад
my apology, thats my bad 😓
Далее
Epic Reflex Game vs MrBeast Crew 🙈😱
00:32
Просмотров 6 млн
🍎 Apple Pie Cinnamon Roll Donut #Shorts
00:21
Просмотров 1,9 млн
Microservices with Databases can be challenging...
20:52
The Tools I Use to Build Products in Laravel
19:00
Просмотров 32 тыс.
Go Pointers: When & How To Use Them Efficiently
14:09
Epic Reflex Game vs MrBeast Crew 🙈😱
00:32
Просмотров 6 млн