@nova-ts/core
Version:
A serverside framework used to build scalable application
30 lines (28 loc) • 638 B
JavaScript
import {
NovaHttpFactory
} from "./chunk-NFKNGA3O.js";
// src/Factory/ApplicationFactory.ts
import express from "express";
var Application = express();
Application.use(express.json());
var ApplicationFactory = class {
port;
setPort(port) {
this.port = port;
}
InitializeApplication() {
new NovaHttpFactory(Application).initializeRoute();
if (!this.port) {
this.port = 8080;
}
}
startApplication() {
Application.listen(this.port, () => {
console.log(`Application started on the port : ${this.port}`);
});
}
};
export {
ApplicationFactory
};
//# sourceMappingURL=chunk-BAL6U2SA.js.map