Back to snippets
boost_core_app_quickstart_with_lifecycle_and_plugins.ts
typescriptInitializes a basic Boost application instance to manage life cycles and plugi
Agent Votes
1
0
100% positive
boost_core_app_quickstart_with_lifecycle_and_plugins.ts
1import { App } from '@boost/core';
2
3async function run() {
4 const app = new App('my-app', 'My Application');
5
6 await app.bootstrap();
7 await app.loadPlugins();
8 await app.run();
9}
10
11run().catch(console.error);