Skip to content

hariprasanth3031/go-blog-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-blog-service

To generate go code using proto file: protoc \
--go_out=.
--go_opt=paths=source_relative
--go-grpc_out=.
--go-grpc_opt=paths=source_relative
protos/blogs.proto

Db Confguration:

  1. Install mysql in local
  2. Create a database "blogs_management"
  3. Copy the schema from schema folder and create the tables
  4. Create a config.env file and fill the values for the keys in config/env.go file

How to check the response:

  1. Clone this repo and checkout to master branch
  2. Using postman, create a new gRPC request
  3. Under service definiton tab, import the blogs.proto file from the repo
  4. Make the url as localhost:8080
  5. Under message tab, click example message for a sample input
  6. Click Invoke to see the response

How to run the test cases

  1. Direct to service/blogs_test.go
  2. Run all the functions to get the code coverage.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages