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

0.2.12 • 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);
  });
});

/@softkit/bootstrap/

    Package Sidebar

    Install

    npm i @softkit/bootstrap

    Weekly Downloads

    49

    Version

    0.2.12

    License

    none

    Unpacked Size

    56.2 kB

    Total Files

    57

    Last publish

    Collaborators

    • vsamofal