1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-02-11 13:38:46 +02:00
Tony Chen b9f821c29f
transport/http: add http handler (#937)
* add http handler

* fix request error
2021-05-21 23:11:36 +08:00
..
2021-03-05 23:49:25 +08:00
2021-05-20 23:30:50 +08:00
2021-03-05 23:49:25 +08:00
2021-03-11 23:42:28 +08:00
2021-03-05 23:49:25 +08:00
2021-03-11 23:42:28 +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