repo for case study 1
- To install GIN, use : go get -u "github.com/gin-gonic/gin"
- To install gRPC, use : go get -u "google.golang.org/grpc"
- Clone the repository
- Change GOPATH to pwd to this repo i.e. consumer-order-prediction or just clone the repo in usr/local/go/src
- To install GIN run the command, go get -u "github.com/gin-gonic/gin"
- TO install gRPC run the command, go get -u "google.golang.org/grpc"
- In terminal go to consumer-order-prediction/pkg/grpc and run “go run server.go”
- In another terminal go to cmd/gin_grpc and run “go run main.go”
- After this the API will run on localhost:5656
To fetch different query :-
- “Localhost:5656/” for homepage
- “Localhost:5656/popularrestaurant” to get popular restaurant
- “Localhost:5656/order” to place a new order
- “Localhost:5656/popularcuisine” to check the most popular cuisine