Skip to content

Commit f7f1450

Browse files
committed
update tutorial
1 parent 0e535eb commit f7f1450

File tree

4 files changed

+506
-4
lines changed

4 files changed

+506
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ tags: graphql, go, api, gqlgen
4343
### How to Run The Project <a name="how-to-run-project"></a>
4444
First start mysql server with docker:
4545
```bash
46-
docker run --name mysql -e MYSQL_ROOT_PASSWORD=dbpass -d mysql:latest
46+
docker run -p 3306:3306 --name mysql -e MYSQL_ROOT_PASSWORD=dbpass -e MYSQL_DATABASE=hackernews -d mysql:latest
4747
```
4848
Then create a Table names hackernews for our app:
4949
```sql

go.mod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ require (
1313
github.com/go-chi/chi v3.3.2+incompatible
1414
github.com/go-sql-driver/mysql v1.5.0
1515
github.com/golang-migrate/migrate v3.5.4+incompatible
16+
github.com/golang-migrate/migrate/v4 v4.12.2 // indirect
1617
github.com/opencontainers/go-digest v1.0.0-rc1 // indirect
1718
github.com/urfave/cli v1.20.0 // indirect
1819
github.com/vektah/gqlparser v1.3.1 // indirect
1920
github.com/vektah/gqlparser/v2 v2.0.1
20-
golang.org/x/crypto v0.0.0-20200604202706-70a84ac30bf9
21+
golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899
2122
)

0 commit comments

Comments
 (0)