{"id":25424394,"url":"https://github.com/sebastianbaiju/angular-go-grpc-protocol","last_synced_at":"2026-04-16T05:33:00.797Z","repository":{"id":277544359,"uuid":"932711572","full_name":"SebastianBaiju/angular-go-grpc-protocol","owner":"SebastianBaiju","description":"This project demonstrates how to establish a connection between an Angular frontend and a Go backend using the gRPC protocol. By leveraging Protocol Buffers (protobufs), we enable efficient and structured communication between the two services.","archived":false,"fork":false,"pushed_at":"2025-02-25T11:35:59.000Z","size":11810,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-14T02:24:13.622Z","etag":null,"topics":["angular","go","grpc","grpc-go"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/SebastianBaiju.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":"2025-02-14T11:31:42.000Z","updated_at":"2025-02-25T11:36:03.000Z","dependencies_parsed_at":"2025-02-14T14:34:13.798Z","dependency_job_id":"348f58e5-3506-4992-a342-a0fd0aaf6683","html_url":"https://github.com/SebastianBaiju/angular-go-grpc-protocol","commit_stats":null,"previous_names":["sebastianbaiju/angular-golang-grpc-protocol"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SebastianBaiju/angular-go-grpc-protocol","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebastianBaiju%2Fangular-go-grpc-protocol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebastianBaiju%2Fangular-go-grpc-protocol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebastianBaiju%2Fangular-go-grpc-protocol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebastianBaiju%2Fangular-go-grpc-protocol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SebastianBaiju","download_url":"https://codeload.github.com/SebastianBaiju/angular-go-grpc-protocol/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SebastianBaiju%2Fangular-go-grpc-protocol/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264696460,"owners_count":23650936,"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":["angular","go","grpc","grpc-go"],"created_at":"2025-02-16T23:16:00.590Z","updated_at":"2026-04-16T05:33:00.752Z","avatar_url":"https://github.com/SebastianBaiju.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Connecting Angular and Go with gRPC\n\n## Overview\nThis project demonstrates how to establish a connection between an Angular frontend and a Go backend using the gRPC protocol. By leveraging Protocol Buffers (protobufs), we enable efficient and structured communication between the two services.\n\n## Technologies Used\n\n### 🔹 Angular  \n- `@ngx-grpc/core` – Connects Angular to the gRPC server  \n- `@ngx-grpc/improbable-eng-grpc-web-client` – Enables gRPC-Web support  \n- `@ngx-grpc/well-known-types` – Provides well-known protocol buffer types  \n- `google-protobuf` – Handles protobuf serialization \u0026 deserialization  \n- `ngx-cookie-service` – Manages cookies for authentication  \n- `ngx-toastr` – Displays user-friendly toast notifications  \n- `rxjs` \u0026 `subsink` – Manages observables and subscriptions efficiently  \n\n### 🔹 Go  \n- `google.golang.org/grpc` – Implements gRPC server  \n- `google.golang.org/protobuf` – Manages protocol buffers  \n- `github.com/improbable-eng/grpc-web` – Enables gRPC-Web support  \n- `github.com/gofrs/uuid/v5` – Generates unique IDs  \n- `github.com/golang-jwt/jwt/v4` – Handles authentication  \n- `gorm.io/gorm` \u0026 `gorm.io/driver/postgres` – Database ORM and PostgreSQL driver  \n\n## Setup and Installation\n\n### 1. Clone the Repository\n```sh\ngit clone https://github.com/SebastianBaiju/angular-go-grpc-protocol.git\n```\n\n### 2. Install Dependencies\n#### Angular\n```sh\ncd angular-gRPC\nnpm install\n```\n\n#### Go\n```sh\ncd go-gRPC\ngo mod tidy\n```\n\n### 3. Compile Proto Files\n#### Angular\n```sh\nnpm run proto:generate\n```\n\n#### Go\n```sh\ncd proto\nmake all\n```\n\n### 4. Run the Project\n#### Start Angular Application\n```sh\nng serve\n```\n\n#### Start Go Server\n```sh\ngo run main.go\n```\n\n## Environment Configuration\n\n### Go (`.env` file)\n```\nPORT=8080\n\nJWT_SECRET=SECRET\n\nDB_HOST=localhost\nDB_PORT=5432\nDB_USERNAME=postgres\nDB_PASSWORD=PASSWORD\nDB_NAME=postgres\n```\n\n### Angular (`env.js`)\n```js\n(function(window) {\n    window.__env = window.__env || {};\n    window.__env.baseUrl = 'http://localhost:8080';\n}(this));\n```\n## Docker\n```sh\ndocker pull sebu5683/grpc-go-angular:latest\n```\n\n## Resources\n- [gRPC Go Quickstart](https://grpc.io/docs/languages/go/quickstart/)\n- [GORM Documentation](https://gorm.io/index.html)\n- [ngx-grpc GitHub](https://github.com/smnbbrv/ngx-grpc)\n- [Docker](https://hub.docker.com/repository/docker/sebu5683/grpc-go-angular/tags)\n- [Demo Url](https://grpc-go-angular.sebastianbaiju.com/)\n  - username: admin\n  - password: admin\n\n## Inspiration\nThis project is inspired by [grpc-template](https://github.com/Jerinji2016/grpc-template). Contributions are welcome—let’s build something great together! 🚀\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastianbaiju%2Fangular-go-grpc-protocol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebastianbaiju%2Fangular-go-grpc-protocol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebastianbaiju%2Fangular-go-grpc-protocol/lists"}