Deepkit Framework // Examples

First Application using Deepkit Framework

Back to all Deepkit Framework examples

The framework package of Deepkit at @deepkit/framework is a module you can import that provides features like application server (http/rpc), debugger and profiler GUI, and other. It is not required to run a simple Deepkit App.

import { App } from '@deepkit/app';
import { FrameworkModule } from '@deepkit/framework';

const app = new App({
    imports: [new FrameworkModule({debug: true})],
});

app.command('hello', () => {
    console.log('Hello World!');
});

app.run();

Then you see all available commands from the framework module:

ts-node app.ts