This monorepo project was generated using Nx.
This project is mainly used for learning/trial about nestjs and boilerplate purposes only.
This Microservice implements the following:
- gRPC Client
- gRPC Server
- Kafka Consumer
- Kafka Producer
- Logging to Fluentd
- Open Tracing
- Open Telemetry with Jaeger
- Example with TCP Client
- Example with TCP Server
npm install --legacy-peer-deps
legacy-peer-deps
flags for old peer dependencies.
Run nx g @nrwl/nest:app my-app
to generate an application.
You can use any of the plugins above to generate applications as well.
When using Nx, you can create multiple applications and libraries in the same workspace.
Run nx g @nrwl/nest:lib my-lib
to generate a library.
You can also use any of the plugins above to generate libraries as well. Example: @nrwl/workspace, @nrwl/js, @nrwl/node
Libraries are shareable across libraries and applications. They can be imported from @demo-nestjs/mylib
.
Run nx serve my-app
for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
Run nx build my-app
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Run nx docker my-app
to build the project with docker.
Run nx test my-app
to execute the unit tests via Jest.
Run nx affected:test
to execute the unit tests affected by a change.
Run nx graph
to see a diagram of the dependencies of your projects.
Visit the Nx Documentation to learn more.