{"id":26235652,"url":"https://github.com/dxtaner/graphql-comments","last_synced_at":"2026-05-16T08:33:38.087Z","repository":{"id":134096607,"uuid":"489108201","full_name":"dxtaner/graphql-comments","owner":"dxtaner","description":"grahpqlComments","archived":false,"fork":false,"pushed_at":"2025-02-05T12:56:34.000Z","size":723,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T03:16:59.901Z","etag":null,"topics":["comments","grapghql","graphql-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/dxtaner.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":"2022-05-05T19:53:18.000Z","updated_at":"2025-02-05T12:56:37.000Z","dependencies_parsed_at":"2023-05-26T09:45:35.759Z","dependency_job_id":null,"html_url":"https://github.com/dxtaner/graphql-comments","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dxtaner/graphql-comments","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxtaner%2Fgraphql-comments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxtaner%2Fgraphql-comments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxtaner%2Fgraphql-comments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxtaner%2Fgraphql-comments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dxtaner","download_url":"https://codeload.github.com/dxtaner/graphql-comments/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dxtaner%2Fgraphql-comments/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269928190,"owners_count":24498384,"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","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["comments","grapghql","graphql-api"],"created_at":"2025-03-13T03:17:06.697Z","updated_at":"2026-05-16T08:33:33.057Z","avatar_url":"https://github.com/dxtaner.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Project Setup\r\n-------------\r\n\r\n### Requirements\r\n\r\n*   Node.js (v14+ recommended)\r\n*   Redis Server\r\n\r\n### Installation Steps\r\n\r\n1.  Install project dependencies:\r\n    \r\n    npm install\r\n    \r\n2.  Create a `.env` file and define the following environment variables:\r\n    \r\n    REDIS\\_HOST=localhost\r\n                REDIS\\_PORT=6379\r\n    REDIS\\_PASSWORD=\r\n    \r\n    Start the Apollo Server:\r\n    npm start\r\n    \r\n    Project Structure\r\n    -----------------\r\n    \r\n        *   `server.js`: Main file where the Apollo Server is initialized.\r\n        *   `pubsub.js`: File managing PubSub subscriptions via Redis.\r\n        *   `data.js`: File containing sample data for users, posts, and comments.\r\n        *   `resolvers.js`: File resolving GraphQL queries and mutations.\r\n        *   `typeDefs.js`: File defining the GraphQL schema.\r\n    \r\n    Data Structure\r\n    --------------\r\n    \r\n    ### Users\r\n    \r\n        \r\n    \r\n    Field\r\n    \r\n    Description\r\n    \r\n        \r\n    \r\n    id\r\n    \r\n    User ID\r\n    \r\n        \r\n    \r\n    fullName\r\n    \r\n    Full name of the user\r\n    \r\n        \r\n    \r\n    age\r\n    \r\n    Age of the user\r\n    \r\n    ### Posts\r\n    \r\n        \r\n    \r\n    Field\r\n    \r\n    Description\r\n    \r\n        \r\n    \r\n    id\r\n    \r\n    Post ID\r\n    \r\n        \r\n    \r\n    title\r\n    \r\n    Post title\r\n    \r\n        \r\n    \r\n    user\\_id\r\n    \r\n    ID of the user who created the post\r\n    \r\n    ### Comments\r\n    \r\n        \r\n    \r\n    Field\r\n    \r\n    Description\r\n    \r\n        \r\n    \r\n    id\r\n    \r\n    Comment ID\r\n    \r\n        \r\n    \r\n    text\r\n    \r\n    Comment content\r\n    \r\n        \r\n    \r\n    post\\_id\r\n    \r\n    ID of the post the comment belongs to\r\n    \r\n        \r\n    \r\n    user\\_id\r\n    \r\n    ID of the user who made the comment\r\n    \r\n    Real-Time Subscriptions\r\n    -----------------------\r\n    \r\n    Thanks to the Redis PubSub mechanism, it is possible to listen for specific events and receive notifications. Subscriptions allow tracking new comments, posts, or user additions.\r\n    \r\n    ### Example subscription request:\r\n    \r\n    subscription {\r\n      newComment {\r\n        id\r\n        text\r\n        post\\_id\r\n        user\\_id\r\n      }\r\n    }\r\n    \r\n    License\r\n    -------\r\n    \r\n    This project is open-source and protected under the MIT license.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdxtaner%2Fgraphql-comments","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdxtaner%2Fgraphql-comments","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdxtaner%2Fgraphql-comments/lists"}