You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
kratos/examples/blog
包子 493c11929f
fix(examples): rename config to cfg in blog (#1122)
3 years ago
..
api/blog/v1 feat(cmd): support the validate pb file generate for kratos proto client command (#1094) 3 years ago
cmd/blog fix(examples): rename config to cfg in blog (#1122) 3 years ago
configs trace config (#956) 4 years ago
internal feat(cmd): support the validate pb file generate for kratos proto client command (#1094) 3 years ago
.gitignore examples (#748) 4 years ago
LICENSE examples (#748) 4 years ago
Makefile Feat/uni transport (#1028) 3 years ago
README.md Fix README file of the blog example. (#842) 4 years ago
generate.go fix example (#755) 4 years ago

README.md

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