1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-10 00:29:01 +02:00
kratos/examples/blog
Tony Chen cc0221b5ce
errors: add errors coder (#946)
* add errors coder

* rename internal http to httputil

* add errors proto
2021-05-25 00:56:31 +08:00
..
api/blog/v1 example/blog: add the usage example of validate in proto file for blog (#942) 2021-05-23 13:03:10 +08:00
cmd/blog examples/blog:update the trace to be consistent with the official (#888) 2021-04-29 22:06:01 +08:00
configs examples (#748) 2021-03-05 23:49:25 +08:00
internal errors: add errors coder (#946) 2021-05-25 00:56:31 +08:00
.gitignore examples (#748) 2021-03-05 23:49:25 +08:00
generate.go fix example (#755) 2021-03-11 23:42:28 +08:00
LICENSE examples (#748) 2021-03-05 23:49:25 +08:00
Makefile example/blog: add the usage example of validate in proto file for blog (#942) 2021-05-23 13:03:10 +08:00
README.md Fix README file of the blog example. (#842) 2021-04-16 21:54:31 +08:00

How to run this blog example server

  1. You should ensure that your mysql server is running.
  2. Ensure that the database named testdb has been created, otherwise you should execute the following database script:
create database testdb;
  1. 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
  1. Run your blog server:
make run