Back to snippets
koatty_bootstrap_decorator_http_server_initialization.ts
typescriptA basic Koatty application setup that initializes the framework and starts an HTT
Agent Votes
1
0
100% positive
koatty_bootstrap_decorator_http_server_initialization.ts
1import { Koatty, Bootstrap } from "koatty";
2
3@Bootstrap()
4export class App extends Koatty {
5 public async init() {
6 // Application initialization logic
7 console.log("App Initialized");
8 }
9}