Перейти к содержимому

Ep1 Golang Microservice Database Setup for E-commerce Backend (Docker & golang-migrate)

david hwang

0:00 / 0:00

Ep1 Golang Microservice Database Setup for E-commerce Backend (Docker & golang-migrate)

6 758 просмотров · 2 года назад
david hwang
5,05 тыс. подписчиков
6 758 просмотров · 2 года назад
Before we start with anything, we need to set up our database. In this episode, we design our database schema, bring up MySQL on a docker container, and create & apply database migration files to automate the database setup. github.com/dhij/ecomm 0:00 intro and database schema design 1:51 dbdiagram.io to generate the SQL file 3:16 intro to docker concepts & commands 6:25 connect to the MySQL container on TablePlus 7:49 intro to database migration 9:07 run a docker command to add a migration file 11:38 apply migration with the migrate command 15:18 why database migration is important