Skip to content

Latest commit

 

History

History
63 lines (41 loc) · 939 Bytes

README.md

File metadata and controls

63 lines (41 loc) · 939 Bytes

Aeon Take Home Assignment

Develop a Golang application using gRPC to serve data about books. The assignment should showcase your skills with gRPC, GraphQL, and Golang best practices.

Installation

MacOS

Install GO

  brew install go

Download the dependencies

Go to the project working directory and run

  go mod download

Set Environment Variables

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=

Run grpc-server

Go inside grpc-server and run

  go run server.go

Run gql-server

Go inside gql-server and run

  go run server.go

Make GraphQL Requests

The GraphQL playground is running on

http://localhost:{GQL_SERVER_PORT}/play