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/transaction/ent
包子 c9f1d7db6d
feat(examples/transaction): add transaction examples (#1836)
3 years ago
..
cmd/ent feat(examples/transaction): add transaction examples (#1836) 3 years ago
configs feat(examples/transaction): add transaction examples (#1836) 3 years ago
internal feat(examples/transaction): add transaction examples (#1836) 3 years ago
Makefile feat(examples/transaction): add transaction examples (#1836) 3 years ago
README.md feat(examples/transaction): add transaction examples (#1836) 3 years ago
generate.go feat(examples/transaction): add transaction examples (#1836) 3 years ago
openapi.yaml feat(examples/transaction): add transaction examples (#1836) 3 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:
$ go generate ./...
$ kratos run