{"id":25326704,"url":"https://github.com/abdelilahou/goferql-api","last_synced_at":"2026-04-14T15:31:34.546Z","repository":{"id":263243682,"uuid":"889779932","full_name":"AbdelilahOu/GoferQl-api","owner":"AbdelilahOu","description":"Simple GraphQl api build with golang and sqlc","archived":false,"fork":false,"pushed_at":"2025-07-21T08:53:19.000Z","size":43,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-26T08:04:11.883Z","etag":null,"topics":["backend-api","golang","graphql","http","postgresql","sqlc"],"latest_commit_sha":null,"homepage":"","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/AbdelilahOu.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,"zenodo":null}},"created_at":"2024-11-17T07:58:47.000Z","updated_at":"2025-07-27T23:20:02.000Z","dependencies_parsed_at":"2025-04-08T02:01:19.123Z","dependency_job_id":"c05d0d90-a14c-45e1-a0a0-6694a9cea052","html_url":"https://github.com/AbdelilahOu/GoferQl-api","commit_stats":null,"previous_names":["abdelilahou/goferql-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AbdelilahOu/GoferQl-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdelilahOu%2FGoferQl-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdelilahOu%2FGoferQl-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdelilahOu%2FGoferQl-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdelilahOu%2FGoferQl-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AbdelilahOu","download_url":"https://codeload.github.com/AbdelilahOu/GoferQl-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdelilahOu%2FGoferQl-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31803188,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T11:13:53.975Z","status":"ssl_error","status_checked_at":"2026-04-14T11:13:53.299Z","response_time":153,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["backend-api","golang","graphql","http","postgresql","sqlc"],"created_at":"2025-02-14T01:53:30.061Z","updated_at":"2026-04-14T15:31:34.530Z","avatar_url":"https://github.com/AbdelilahOu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoferQL API\n\nA GraphQL server implementation built with Go, PostgreSQL, and github.com/graphql-go/graphql.\n\n## Overview\n\nGoferQL API is a GraphQL server that provides a flexible API for managing posts, comments, users, categories, and tags. It uses SQLC for type-safe database operations and the graphql-go package for GraphQL implementation.\n\n## Tech Stack\n\n- Go\n- PostgreSQL\n- github.com/graphql-go/graphql\n- SQLC\n\n## Project Structure\n\n```\n.\n├── cmd/\n│   ├── seed/\n│   │   └── main.go // generate dummy data\n│   └── server/\n│       └── main.go // server handler\n├── config/\n│   └── config.go // server config\n├── graphql/\n│   ├── mutations/  // mutations\n│   │   ├── category.go\n│   │   ├── comment.go\n│   │   ├── post.go\n│   │   ├── postTag.go\n│   │   ├── tag.go\n│   │   └── user.go\n│   ├── queries/  //queries\n│   │   ├── category.go\n│   │   ├── comment.go\n│   │   ├── post.go\n│   │   ├── tag.go\n│   │   └── user.go\n│   ├── resolvers/  // resolvers\n│   │   ├── category.go\n│   │   ├── comment.go\n│   │   ├── post.go\n│   │   ├── postTag.go\n│   │   ├── tag.go\n│   │   └── user.go\n│   ├── types/  // types\n│   │   └── types.go\n│   └── utils/  // schema\n│       └── schema.go\n├── internal/\n│   └── db/ // database + sqlc\n│       ├── migrations/\n│       ├── queries/\n│       └── sqlc/\n├── .env\n├── go.mod\n├── go.sum\n├── Makefile // all project commands\n├── README.md\n├── schema.graphql // graphql schema\n└── sqlc.yaml // sqlc config\n```\n\n## Setup\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/AbdelilahOu/GoferQl-api\ncd GoferQl-api\n```\n\n2. Install dependencies:\n\n```bash\ngo mod download\n```\n\n3. Set up the database:\n\n```bash\n# Create database container\nmake containerup\n\n# Create PostgreSQL database\nmake createdb\n\n# Run migrations\nmake migrations-up\n```\n\n4. seed database:\n\n```bash\nmake seed\n```\n\n4. Configure environment variables:\n\n```bash\ncp .env.example .env\n# Edit .env with your configuration\n```\n\n5. Run the server:\n\n```bash\nmake server\n```\n\n## GraphQL Schema\n\nThe API supports the following main types:\n\n- User (username, email, bio)\n- Post (title, content, status)\n- Comment (content, nested replies)\n- Category (name, description)\n- Tag (name)\n\n### Example Queries\n\nFetch posts with author and comments:\n\n```graphql\nquery {\n  posts(limit: 10, offset: 0) {\n    id\n    title\n    content\n    user {\n      username\n    }\n    comments {\n      content\n      user {\n        username\n      }\n    }\n  }\n}\n```\n\nCreate a new post:\n\n```graphql\nmutation {\n  createPost(\n    title: \"Hello World\"\n    content: \"This is my first post\"\n    status: \"published\"\n    userId: \"user-id\"\n    categoryId: \"category-id\"\n  ) {\n    id\n    title\n    createdAt\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdelilahou%2Fgoferql-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdelilahou%2Fgoferql-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdelilahou%2Fgoferql-api/lists"}