go-mux-mvc boilerplate with mysql database
-
download this repo at your root project
-
run the following script in your mysql workspace
CREATE DATABASE sample;
DROP TABLE IF EXISTS
data
; CREATE TABLEdata
(id
int(6) unsigned NOT NULL AUTO_INCREMENT,text
varchar(30) NOT NULL, PRIMARY KEY (id
) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
- router at
controllers/controllers.go
PORT
: ex8008