Skip to content

neharkarvishal/nestjs-background-worker-microservice

Repository files navigation

Building NestJS worker/scheduler without starting the HTTP server

At its core, NestJS is a modularized framework that provides strong DI capabilities to the node/TS ecosystem.

A top-level module can be exposed in one of three ways:

• An HTTP server

• A microservice

• An application context eg. bootstrapped DI container

You can build a background worker without using HTTP features of Nest by creating your application as a microservice with a custom strategy

Running the app

# install deps
$ npm install

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

About

nestjs-worker-without-http

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published