Use go-bindata to generate Go code from .graphql file
Add authentication & authorization
Add simple unit test cases
Requirement:
Postgres database
Golang
GNU Make (Optional)
Usage:
Create database in Postgres and update server.toml configuration and run migrations
make migrate
Install go-bindata
go get -u github.com/go-bindata/go-bindata/...
Run the following command at root directory to generate Go code from .graphql file
make schema
There would be bindata.go generated under schema folder
Start the server (Ensure your postgres database is live and its setting in server.toml is correct)
make run
Docker:
Build docker image. Update config/server.toml configuration file before building image. Make sure server http ports match in config and Dockerfile. Also update postgres configuration.