Skip to content

Go GraphQL sample API using Echo, graphql-go with MySQL backend and redis cache. The App is a depiction of a Cab Booking Platform

Notifications You must be signed in to change notification settings

KrishKayc/graphql-go-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go GraphQL Application Using Echo, graphql-go.

Sample app which depicts a Cab Booking platform. The app supports graphQL queries to book a nearby cab and view booking history for a user.

Setup sample Data

Execute the following sql scripts in mysql shell

   source db/install.sql 
   source db/dump.sql 

Running the app

  go build  (once done executable will be generated in the same directory)
  ./bookCab
  

Running Tests

    cd booker/tests
    go test -coverpkg=..
    
    cd graphql/fields/tests
    go test -coverpkg=..

Explore graphQL endpoints

Open GraphiQL App and use 'http://locahost:3000/graphql' to explore the types and work with queries and mutations

About

Go GraphQL sample API using Echo, graphql-go with MySQL backend and redis cache. The App is a depiction of a Cab Booking Platform

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages