|
4 years ago | |
---|---|---|
.. | ||
api/blog/v1 | 4 years ago | |
cmd/blog | 4 years ago | |
configs | 4 years ago | |
internal | 4 years ago | |
.gitignore | 4 years ago | |
LICENSE | 4 years ago | |
Makefile | 4 years ago | |
README.md | 4 years ago | |
generate.go | 4 years ago |
README.md
How to run this blog example server
- You should ensure that your mysql server is running.
- Ensure that the database named
testdb
has been created, otherwise you should execute the following database script:
create database testdb;
- Modify the
configs/config.yaml
file and add your mysql information in the data source:
data:
database:
driver: mysql
source: root:password@tcp(127.0.0.1:3306)/testdb?parseTime=True
- Run your blog server:
make run