1.0.7 • Published 3 years ago

@motech-development/bootstrap v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

npm size sonar

@motech-development/bootstrap

Bootstrap NestJS REST API and microservice applications

Quickly get a NestJS app up and running with built in network logging, input validation and application crash logging. Supports both Nest applications and microservices.

Installation

Add @motech-development/bootstrap as a dependency.

# Yarn
yarn add @motech-development/bootstrap

# NPM
npm i @motech-development/bootstrap

Usage

Use the bootstrap on your application entry point.

import { bootstrap } from '@motech-development/bootstrap';

const api = NestFactory.create(RestApiModule);

const service = NestFactory.createMicroservice(MicroserviceModule);

const port = 8080; // Optional. Defaults to 3000. Can also be set using the PORT environment variable.

bootstrap(
  {
    api, // Optional
    service, // Optional
  },
  port,
);
1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago