项目作者: bickyeric

项目描述 :
Graphql implementation using Golang, MySQL for case Point Of Sale Backend
高级语言: Go
项目地址: git://github.com/bickyeric/graphql-sample.git
创建时间: 2018-11-27T16:57:43Z
项目社区:https://github.com/bickyeric/graphql-sample

开源协议:MIT License

下载


graphql-sample

Development Guide

Installation

  • Install Git

    See Git Installation

  • Install Go (Golang)

    See Golang Installation

  • Clone this repo in $GOPATH/src/github.com/bickyeric

  • Install Dep

    See Dep Installation

  • Install dependencies

    1. cd $GOPATH/src/github.com/bickyeric/graphql-sample
    2. dep ensure
  • Copy env.sample and if necessary, modify the env value(s)

    1. cp .env.sample .env
  • Prepare MySQL database

    1. make db-up
    2. make db-seed
  • Run Locally

    1. make run
  • Try
    1. curl http://127.0.0.1:1234/graphql?query={storeList{name}} -g

References