Demo application for learning GraphQL.
- v8.12.0
- (npm version 6.4.1)
# create database
$ mysql -h172.0.0.1 -uusername -p < db/create_database.sql
# migration
$ mysql -h172.0.0.1 -uusername -p graphql-demo < db/create_table.sql
# insert seed data
$ mysql -h172.0.0.1 -uusername -p graphql-demo < db/seed.sql
# data source
$ export dsn = "username:password@tcp(170.0.0.1)/graphql-demo"
# port number
$ export PORT = "3000"
# install npm packages
$ npm install
# install golang packages
$ govendor sync
$ make up
page | url |
---|---|
application | http://localhost:3000 |
graphiql | http://localhost:3000/graphql |