{"id":16807780,"url":"https://github.com/lfscamargo/graphql-go-boierplate","last_synced_at":"2025-10-17T07:30:20.150Z","repository":{"id":96704763,"uuid":"324328298","full_name":"LFSCamargo/graphql-go-boierplate","owner":"LFSCamargo","description":"A simple boilerplate for GoLang GraphQL server","archived":false,"fork":false,"pushed_at":"2020-12-28T13:13:27.000Z","size":29,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T01:12:34.473Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LFSCamargo.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-25T09:09:22.000Z","updated_at":"2022-04-03T03:50:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"784805c3-8a1a-4cbc-8c56-7722da9bfe1b","html_url":"https://github.com/LFSCamargo/graphql-go-boierplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LFSCamargo%2Fgraphql-go-boierplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LFSCamargo%2Fgraphql-go-boierplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LFSCamargo%2Fgraphql-go-boierplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LFSCamargo%2Fgraphql-go-boierplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LFSCamargo","download_url":"https://codeload.github.com/LFSCamargo/graphql-go-boierplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248322571,"owners_count":21084337,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T09:54:58.395Z","updated_at":"2025-10-17T07:30:15.101Z","avatar_url":"https://github.com/LFSCamargo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/graph-gophers/graphql-go/raw/master/docs/img/logo.png\" /\u003e\n  \u003cbr/\u003e\n  \u003ch1\u003eGo Lang GraphQL Boilerplate\u003c/h1\u003e\n  \u003ch3\u003eThis is my GraphQL Boilerplate for starters at Go and GraphQL \u003c/h3\u003e\n\u003c/div\u003e\n\n# Why i created this?\nI was studying Go Lang and i did not found any great tutorial of how to build a simple GraphQL server with authentication and with password hashing\n\n# What you need to know?\n\nThere are three stuff that you need to know about this boilerplate\n\n## What database is beign used?\n\nMongoDB, and for managing i'm using the `mgm` that is a ODM for mongo, and the models that i create are all inside the `database/models` folder. You can create your models inside that folder like this: `database/models/user/user.go` \n\n## What is being used to handle GraphQL?\n\nGQL Gen, the graphql gen it's a pretty easy solution to work with GraphQL with Go!\n\nIt has some tools to help you develop faster you just need to change the schema and run the following command to generate the models and resolvers skeleton:\n\n```sh \ngo run github.com/99designs/gqlgen\n```\n\nIt will generate a model inside the file `graph/model/models_gen.go` folder and also will create the resolvers for you automatically inside `graph/schema.resolvers.go`, but there are two things that you need to know:\n\n1. The models should not be edited because they are generated based on the `graph/schema.graphqls`\n2. You can edit the `graph/schema.resolvers.go` but when you run the gql gen command will create resolvers but without any kind of logic inside\n\n# How to run the project\n\n1. Clone the repo\n2. Enter the project folder and run the following command to install the deps `go mod download`\n3. Run the `go run server.go` and you should be fine\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flfscamargo%2Fgraphql-go-boierplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flfscamargo%2Fgraphql-go-boierplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flfscamargo%2Fgraphql-go-boierplate/lists"}