Skip to content

Commit

Permalink
Merge branch 'Glyphack:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Glyphack authored May 13, 2022
2 parents 428cfd7 + 314d7c1 commit 47b2c40
Show file tree
Hide file tree
Showing 6 changed files with 518 additions and 9 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ tags: graphql, go, api, gqlgen
---
## Table Of Contents
- [Table Of Contents](#table-of-contents)
- [How to Run The Porject](#how-to-run-project)
- [How to Run The Project](#how-to-run-project)
- [Motivation ](#motivation)
- [What is a GraphQL server?](#what-is-a-graphql-server)
- [Schema-Driven Development](#schema-driven-development)
Expand All @@ -24,7 +24,7 @@ tags: graphql, go, api, gqlgen
- [Models and migrations](#models-and-migrations)
- [Create and Retrieve Links](#create-and-retrieve-links)
- [CreateLinks](#createlinks)
- [links Query](#links-query)
- [Links Query](#links-query)
- [Authentication](#authentication)
- [JWT](#jwt)
- [Setup](#setup)
Expand All @@ -43,7 +43,7 @@ tags: graphql, go, api, gqlgen
### How to Run The Project <a name="how-to-run-project"></a>
First start mysql server with docker:
```bash
docker run --name mysql -e MYSQL_ROOT_PASSWORD=dbpass -d mysql:latest
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:
```sql
Expand Down
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ require (
github.com/go-chi/chi v3.3.2+incompatible
github.com/go-sql-driver/mysql v1.5.0
github.com/golang-migrate/migrate v3.5.4+incompatible
github.com/golang-migrate/migrate/v4 v4.12.2 // indirect
github.com/opencontainers/go-digest v1.0.0-rc1 // indirect
github.com/urfave/cli v1.20.0 // indirect
github.com/vektah/gqlparser v1.3.1 // indirect
github.com/vektah/gqlparser/v2 v2.0.1
golang.org/x/crypto v0.0.0-20200604202706-70a84ac30bf9
golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899
)
Loading

0 comments on commit 47b2c40

Please sign in to comment.