Soap Express
This page and the plugin itself are still in development, a lot will change.
Install
npm install @soapjs/soap @soapjs/soap-express reflect-metadata expressBootstrap
import 'reflect-metadata';
import { bootstrap } from '@soapjs/soap-express';
const app = await bootstrap({
port: 3000,
container, // your pre-wired DIContainer
controllers: [CharactersController, AuthController],
middleware: { cors: true, helmet: true, logging: true, compression: true },
auth: jwtStrategy, // guards @Auth() routes
cqrs: true, // wire CommandBus + QueryBus
healthCheck: true,
});Controllers & routes
Authentication
CQRS & Events
Errors → HTTP
Full reference
Last updated