Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AlexDaSoul/nestjs-grpc-angular
https://github.com/AlexDaSoul/nestjs-grpc-angular
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/AlexDaSoul/nestjs-grpc-angular
- Owner: AlexDaSoul
- Created: 2019-06-19T21:38:23.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-12T01:45:48.000Z (over 1 year ago)
- Last Synced: 2024-04-14T13:52:36.712Z (3 months ago)
- Language: TypeScript
- Size: 3.69 MB
- Stars: 30
- Watchers: 1
- Forks: 1
- Open Issues: 36
-
Metadata Files:
- Readme: README.md
Lists
- awesome-angular-ru - nestjs-grpc-angular - Fullstack-стартер с использованием gRPC (Кодогенерация)
README
# NestJs gRPC Angular
https://medium.com/ngx/nestjs-angular-grpc-f8eca5404fc7
Exapmle of [Nestjs](https://nestjs.com/) microservices with [gRPC](https://grpc.io/) and [Angular](https://angular.io/) SPA. Chat with JWT
(JWS) authorization
and message stream.### installation
* Install [protoc](https://github.com/protocolbuffers/protobuf) and [protoc-gen-grpc-web](https://github.com/grpc/grpc-web/releases) for your OS
* Install [nest cli](https://docs.nestjs.com/cli/overview)
* Install [db-migrate](https://github.com/db-migrate/node-db-migrate)
* Install [grpcurl](https://github.com/fullstorydev/grpcurl)
* Install [docker](https://docs.docker.com/install/) and [docker-compose](https://docs.docker.com/compose/install/)
* `npm install` in project root directory### Usage
Backend:
* `npm run docker:dev:[up|down|restart]` for backend with docker and all microservices. Debug in `docker logs -f
[auth|chat|user]`
* `docker logs [auth|chat|user]` or use plugins for docker in your IDE
* `nest start [--debug --watch] [auth|chat|user]` for start without docker
* `nest build [auth|chat|user]` for build dist
* `db-migrate [up|down|reset|create|db] [[dbname/]migrationName|all] [options]`
* For example `db-migrate create -e user --sql-file -m apps/user/src/services/dal/db/migrations`Frontend:
* `cd frontend && npm run start`
* `npm run build --prod`If need regenerate grpc use:
* `npm run build:grpc:back` for backend
* `npm run build:grpc:front` for frontend
* `npm run build:grpc` for all