Skip to content

Commit

Permalink
Fix example run instructions
Browse files Browse the repository at this point in the history
Making ./example a separate Go module [1] broke the `go run` invocations
listed in a few example readmes [2]. Using relative paths from the
respective example directory should be clear enough.

[1]: commit f93fb24 / issue/PR #1607
[2]:
example/todo/server/server.go:10:2: no required module provides package github.com/99designs/gqlgen/example/todo; to add it:
	go get github.com/99designs/gqlgen/example/todo
  • Loading branch information
minus7 committed Oct 2, 2021
1 parent 1a0b19f commit 47ce074
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions example/chat/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ Example app using subscriptions to build a chat room.

to run this server
```bash
go run ./example/chat/server/server.go
go run ./server/server.go
```

to run the react app
```bash
cd ./example/chat
npm install
npm run start
```
2 changes: 1 addition & 1 deletion example/fileupload/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This server demonstrates how to handle file upload

to run this server
```bash
go run ./example/fileupload/server/server.go
go run ./server/server.go
```

and open http://localhost:8087 in your browser
Expand Down
2 changes: 1 addition & 1 deletion example/selection/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This is the simplest example of a graphql server.

to run this server
```bash
go run ./example/selection/server/server.go
go run ./server/server.go
```

and open http://localhost:8086 in your browser
2 changes: 1 addition & 1 deletion example/starwars/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This server demonstrates a few advanced features of graphql:

to run this server
```bash
go run ./example/starwars/server/server.go
go run ./server/server.go
```

and open http://localhost:8080 in your browser
2 changes: 1 addition & 1 deletion example/todo/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This is the simplest example of a graphql server.

to run this server
```bash
go run ./example/todo/server/server.go
go run ./server/server.go
```

and open http://localhost:8081 in your browser

0 comments on commit 47ce074

Please sign in to comment.