@softkit/bootstrap
TypeScript icon, indicating that this package has built-in type declarations

0.2.11 • Public • Published

Bootstrap Library

This library provides a set of general services, methods and utilities for bootstrapping the application. It's configuring default interceptors, swagger, http server, security, etc...


Useful to do not repeat yourself everytime, and shouldn't be used outside Softkit ecosystem


Installation

yarn add @softkit/bootstrap

Usage in your main.ts

import { PlatformAppModule } from './your-app.module';
import { bootstrapBaseWebApp } from '@softkit/bootstrap';

void bootstrapBaseWebApp(PlatformAppModule);

Usage in tests (e2e)

import { bootstrapBaseWebApp } from '@softkit/bootstrap';

describe('auth e2e test', () => {
  let app: NestFastifyApplication;

  beforeAll(async () => {
    const moduleFixture: TestingModule = await Test.createTestingModule({
      imports: [YourAppModule],
    }).compile();
    app = await bootstrapBaseWebApp(moduleFixture, PlatformAppModule);
  });
});

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @softkit/bootstrap

      Weekly Downloads

      8

      Version

      0.2.11

      License

      none

      Unpacked Size

      56.1 kB

      Total Files

      57

      Last publish

      Collaborators

      • vsamofal