UNPKG

@nova-ts/core

Version:

A serverside framework used to build scalable application

25 lines (23 loc) 703 B
/** * Bootstraps and configures the entire application. * * This function is used to initialize the framework, * set up routes, middleware, dependency injection, and start the Express server. * * Example usage: * ```ts * InitializeApplication(3000); * ``` * * port - The port number on which the application should listen. * @returns {void | Promise<void>} Starts the server after all configurations are complete. * @author Inbaithi107 * @requires ```@nova-ts/context``` installed in the application */ declare class ApplicationFactory { port: number; setPort(port: number): void; InitializeApplication(): void; startApplication(): void; } export { ApplicationFactory };