Develop a Golang application using gRPC to serve data about books. The assignment should showcase your skills with gRPC, GraphQL, and Golang best practices.
Install GO
brew install go
Go to the project working directory and run
go mod download
Set the following environment variables for the grpc-server
export DB_URI=
export DB_NAME=
export GRPC_SERVER_PORT=
Set the following environment variables for the gql-server
export GRPC_SERVER_URL=
export GQL_SERVER_PORT=
Go inside grpc-server
and run
go run server.go
Go inside gql-server
and run
go run server.go
The GraphQL playground is running on
http://localhost:{GQL_SERVER_PORT}/play