Skip to content

sanzharanarbay/golang_gRPC_mongoDB_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Golang gRPC mongoDB example

How to run mongoDB and application

  • docker-compose build --no-cache
  • docker-compose up -d
  • docker-compose ps
  • docker-compose logs -f {service-name}
  • import internal/proto/vacancy.proto file into new Postman gRPC Request and apply CRUD methods of gRPC (category, city, vacancy)

GUI


Windows installation of the protoc compiler


Protobuf/protoc commands

  • cd internal
  • protoc --proto_path=proto --go_out=pb --go_opt=paths=source_relative --go-grpc_out=pb --go-grpc_opt=paths=source_relative --go-grpc_opt=require_unimplemented_servers=false .\proto\category.proto
  • protoc --proto_path=proto --go_out=pb --go_opt=paths=source_relative --go-grpc_out=pb --go-grpc_opt=paths=source_relative --go-grpc_opt=require_unimplemented_servers=false .\proto\city.proto
  • protoc --proto_path=proto --go_out=pb --go_opt=paths=source_relative --go-grpc_out=pb --go-grpc_opt=paths=source_relative --go-grpc_opt=requ ire_unimplemented_servers=false .\proto\vacancy.proto

Protoc && Protobuf


About

Golang gRPC implementation using MongoDB connection

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published