Skip to content

AlexDaSoul/nestjs-grpc-angular

Repository files navigation

NestJs gRPC Angular

https://medium.com/ngx/nestjs-angular-grpc-f8eca5404fc7

Exapmle of Nestjs microservices with gRPC and Angular SPA. Chat with JWT (JWS) authorization and message stream.

installation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published