Skip to content

howtographql/graphql-golang

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

title published description tags
‌Introduction To GraphQL Server With Golang
false
Introduction to GraphQL Server with Golang and Gqlgen.
graphql, go, api, gqlgen

Table Of Contents

How to Run The Project

First start mysql server with docker:

docker run -p 3306:3306 --name mysql -e MYSQL_ROOT_PASSWORD=dbpass -e MYSQL_DATABASE=hackernews -d mysql:latest

Then create a Table names hackernews for our app:

docker exec -it mysql bash
mysql -u root -p
CREATE DATABASE hackernews;

finally run the server:

go run server/server.go

Now navigate to https://localhost:8080 you can see graphiql playground and query the graphql server.

Tutorial

to see the latest version of tutorial visit https://www.howtographql.com/graphql-go/0-introduction/

About

A tutorial for creating GrahpQL APIs in go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%