Skip to content

alikarimii/micro-with-gokit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microservice with go-kit

Run in docker environment

  1. set +x permition
chmod 710 build.sh
chmod 710 start.sh
chmod 710 db_start.sh
chmod 710 jaeger_start.sh
chmod 611 internal/infrastructure/postgres/database/setup/init-db.sh
  1. init db ./db_start.sh
  2. start jaeger ./jaeger_start.sh
  3. build image ./build.sh
  4. create network docker network create student-networks
  5. run ./start.sh

Trace

trace just added to GetAllStudents api.

open this url http://localhost:16686/ in your browser

APIs

  1. create student method=POST url=http://localhost:15343/v1/student body={"first_name":"ali","last_name":"karimi", "national_id":"1"}
  2. get student by id method=GET url=http://localhost:15343/v1/student/{id}
  3. get all students method=GET url=http://localhost:15343/v1/student
  4. update student method=PUT url=http://localhost:15343/v1/student/{id} body={"first_name":"ali","last_name":"karimi", "national_id":"2"}
  5. delete student method=DELETE url=http://localhost:15343/v1/student/{id}
  6. metrics method=GET url=http://localhost:15343/metrics

@TODO

  1. test
  2. swagger
  3. gRPC
  4. prometheus node
  5. grafana
  6. ...

About

Microservices with go-kit framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published