{"id":18266140,"url":"https://github.com/arturmareknowak/grpcgraphqlwebsockets","last_synced_at":"2026-04-04T22:34:30.559Z","repository":{"id":42662099,"uuid":"471810650","full_name":"ArturMarekNowak/gRPCGraphQLWebSockets","owner":"ArturMarekNowak","description":"Implementation of REST, gRPC, WebSockets and GraphQL endpoints within one container with data stored in SQLite","archived":false,"fork":false,"pushed_at":"2025-01-12T21:19:31.000Z","size":174,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-03T19:29:17.465Z","etag":null,"topics":["docker","graphql","grpc","hotchocolate","rest","signalr","sqlite","swagger"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ArturMarekNowak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-03-19T20:56:23.000Z","updated_at":"2025-01-12T21:19:34.000Z","dependencies_parsed_at":"2024-02-25T21:23:59.682Z","dependency_job_id":"43b8ed78-2dad-41b9-a557-3bf1d2fdfe06","html_url":"https://github.com/ArturMarekNowak/gRPCGraphQLWebSockets","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ArturMarekNowak/gRPCGraphQLWebSockets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArturMarekNowak%2FgRPCGraphQLWebSockets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArturMarekNowak%2FgRPCGraphQLWebSockets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArturMarekNowak%2FgRPCGraphQLWebSockets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArturMarekNowak%2FgRPCGraphQLWebSockets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArturMarekNowak","download_url":"https://codeload.github.com/ArturMarekNowak/gRPCGraphQLWebSockets/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArturMarekNowak%2FgRPCGraphQLWebSockets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31416791,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"last_error":"SSL_read: 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":["docker","graphql","grpc","hotchocolate","rest","signalr","sqlite","swagger"],"created_at":"2024-11-05T11:22:07.383Z","updated_at":"2026-04-04T22:34:30.538Z","avatar_url":"https://github.com/ArturMarekNowak.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gRPC GraphQL WebSockets \n\n![Build](https://github.com/ArturMarekNowak/gRPCGraphQLWebSockets/actions/workflows/workflow.yml/badge.svg) ![Trivy and Dockle](https://github.com/ArturMarekNowak/gRPCGraphQLWebSockets/actions/workflows/docker-image.yml/badge.svg) [![CodeFactor](https://www.codefactor.io/repository/github/arturmareknowak/grpcgraphqlwebsockets/badge/master)](https://www.codefactor.io/repository/github/arturmareknowak/grpcgraphqlwebsockets/overview/master)\n\n\n\nThe objective of this project is to make a toy example of REST API, gRPC, GraphQL and Websockets all accessing and realizing the same objective: retrieving and sending a simple message to the same database.\n\n## Table of contents\n* [General info](#general-info)\n* [Screenshots](#screenshots)\n* [Technologies](#technologies)\n* [Setup](#setup)\n* [Inspiration](#inspiration)\n\n## General info\nSolution consists of two projects: \n\n1. gRPCGraphQLWebSockets.csproj - this project contains database along with REST API, gRPC, GraphQL and SignalR server\n2. Second item - this project contains SignalR client\n\nAfter project is build and run the four API's can be accessed via given URL's:\n\n- http://localhost:5000/swagger/index.html - under this URL well-know \u003cem\u003eSwagger\u003c/em\u003e documentation documents REST and gRPC endpoints:\n\t- http://localhost:5000/rest \n\t- http://localhost:5000/grpc\n- http://localhost:5000/graphql - under this URL the \u003cem\u003eBanana Cake Pop\u003c/em\u003e tool can be accessed which allows to test GraphQL with ease\n- http://localhost:5000/signalr - under this URL the SignalR server operates. Unfortunately no \"built-in\" tool is implementated to test it. Hence I made a simple SignalR client. But I hope that it changes soon and the SignalR endpoints would be accessible from SwaggerUI.\n\nFor container the origin is: http://localhost:8080/\n\nSolution structure is as following:\n\n    .\n\t└──src\n\t\t├── GrpcGraphQlWebSockets   # Server application for REST, GraphQL, SignalR and gRPC\n\t\t│\t├── Database            # Directory where database context is stored along with SQLite database itself\n\t\t│\t├── google     \t\t\t# This directory contains .proto files required to run gRPC, placed in here beacuse otherwise it won't work\n\t\t│\t├── GraphQl   \t\t\t# GraphQL mutations, queries and models are stored in here\n\t\t│\t├── Grpc        \t\t# gRPC service.cs and service.proto files are stored in here\n\t\t│\t├── Rest         \t\t# REST controller, service and model\n\t\t│\t├── SignalR    \t\t\t# SignalR server hub is stored in here\n\t\t│\t└── SharedModel      \t# Models the same throughout the whole solution\n\t\t│        \n\t\t└── SignalRClient           # Simple SignalR client console application - one file and one .csproj\n\t\t\t└── ...               \n\n## Screenshots\n\n### SignalR \n\nYou can see messages incoming from gRPC and REST being broadcasted to SignalR client as I wanted to be. They are with timestamp. You can also see message sent from SignalR client upon which Id was returned as indication of succesfull message sending. \n\n![SignalR](https://i.imgur.com/2jX7WWi.gif)\n\n\n### gRPC\n\ngRPC response in swagger.\n\n![gRPC](https://i.imgur.com/rCKMYax.png)\n\n\n### GraphQL\n\nGraphQL example.\n\n![GraphQL](https://imgur.com/1sUrFhg.gif)\n\n## Technologies\n* REST API \n* gRPC\n* GraphQL\n* SignalR\n* SQLite\n* Docker\n\n## Setup\nIf you have .NET8 and Visual Studio or JetBrains Rider just open .sln file and try to run the project.\n\n## Status\nProject is: _finished_\n\nSince Microsoft documentation on gRPC+Swagger is realy \"so so\" these two guys were my inspiration in this case: \n\nhttps://github.com/grpc/grpc-dotnet/issues/167#issuecomment-830776140\n\nhttps://github.com/bernardbr/dotnetgrpcrest\n\nhttps://github.com/fl0wm0ti0n/GrpcWithHttpApiSwaggerAndDocker_Test\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farturmareknowak%2Fgrpcgraphqlwebsockets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farturmareknowak%2Fgrpcgraphqlwebsockets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farturmareknowak%2Fgrpcgraphqlwebsockets/lists"}