This project is used to learn about the GIN framework. It is my first project and it's learned form Q1mi.
- Install
git clone https://github.com/haoran-mc/Gin-Todo.git
- Create a database
CREATE DATABASE Gin_Todo;
- Configure database connection information
Please modify this file ./dao/mysql.go
for use on your own machine.
conf.db = "Gin_Todo" // database name
conf.user = "root" // user name
conf.pwd = "haoran232" // user password
conf.host = "127.0.0.1" // host location
conf.port = 3306 // MySQL port
- Run
go run main.go
- Enjoy it!
Open the url http://127.0.0.1:8002/
in your browser.
The front end is implemented using Vue + Element-UI.