Skip to content

wxdx/Todogo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

todo清单

一个基于gin+sqlx开发的练手小项目,通过该项目可初识go web开发该有的姿势。

使用指南

下载

git clone https://github.com/wxdx/Todogo.git

配置MySQL

  1. 在你的数据库中执行以下命令,创建本项目所用的数据库:
CREATE DATABASE todo DEFAULT CHARSET=utf8mb4;
  1. Todogo/conf/config.ini文件中按如下提示配置数据库连接信息。
port = 9000
release = false

[mysql]
user = 你的数据库用户名
password = 你的数据库密码
host = 你的数据库host地址
port = 你的数据库端口
db = todo

编译

go build

执行

Mac/Unix:

./Todogo conf/config.ini

Windows:

Todogo.exe conf/config.ini

启动之后,使用浏览器打开http://127.0.0.1:9000/即可。

About

基于gin+sqlx的清单列表小项目

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors