Code for this medium tutorial about how to build a simple Todo application using Golang and MySql
Cloning the project
$ git clone https://github.com/diegocmsantos/golang-todo.git
Creating MySql docker container
$ docker run -d -p 3306:3306 --name mysql -e MYSQL_ROOT_PASSWORD=root mysql
Creating a 'todolist' database
$ docker exec -it mysql mysql -uroot -proot -e 'CREATE DATABASE todolist'
Building and running the app
$ go build && ./todolist-mysql-go
Open the index.html file into your browser and you're going to see the app running.