https://github.com/tometo-dev/graphql-meetup
GraphQL in Go
https://github.com/tometo-dev/graphql-meetup
golang gorilla-mux gorm gqlgen graphql postgresql
Last synced: about 2 months ago
JSON representation
GraphQL in Go
- Host: GitHub
- URL: https://github.com/tometo-dev/graphql-meetup
- Owner: tometo-dev
- Created: 2020-04-16T06:08:20.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-23T09:32:06.000Z (over 5 years ago)
- Last Synced: 2025-08-16T12:30:08.506Z (about 2 months ago)
- Topics: golang, gorilla-mux, gorm, gqlgen, graphql, postgresql
- Language: Go
- Homepage:
- Size: 67.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
#### Steps to run:
1. Clone the repo
2. Run `go mod download` to download all dependencies
3. Fill the `.env` file. The required variables are:
* `DB_USER`
* `DB_PASSWORD`
* `DB_HOST`
* `DB_PORT`
* `DB_NAME`
* `JWT_SECRET`
4. Database should be postgresql
5. Execute `go run ./server.go` from the root directory
------------------------------------------------------------------------## GraphQL in Golang
The was done following the tutorial by [EQuimper](https://github.com/EQuimper).
The complete tutorial can be found [here](https://www.youtube.com/playlist?list=PLzQWIQOqeUSNwXcneWYJHUREAIucJ5UZn).
The original repo can be found [here](https://github.com/EQuimper/youtube-golang-graphql-tutorial).
------------------------------------
Backend for a meetup app using GraphQL in Go.
The following operations have been covered:
* The user can register
* The user can log in
* The logged in user can create meetups
* The authorized user (owner of meetup) can update/delete meetups
* Meetups can be fetched with filter, limit and offset
* User can be fetched for a given userID
--------------------------------------------------
* The graphQL server was build using [gqlgen](https://gqlgen.com/)
* [gorm](https://gorm.io/) used for DB operations
* [gorilla/mux](https://github.com/gorilla/mux) used for routing
-------------------------------------------------------