trigger screen
This commit is contained in:
parent
fbcfba3948
commit
d10a829882
30 changed files with 19101 additions and 26 deletions
|
@ -4,7 +4,7 @@ import cors from "cors";
|
|||
import locator from "../di/register_di";
|
||||
import { DevEnv, UnitTestEnv } from "../di/env";
|
||||
import mongoose from "mongoose";
|
||||
import http from "http";
|
||||
// import http from "http";
|
||||
// import { Server } from "socket.io";
|
||||
|
||||
export class App {
|
||||
|
@ -16,19 +16,19 @@ export class App {
|
|||
constructor(routes: Routes[], computedFolder: string) {
|
||||
this.port = 3000;
|
||||
this.env = "dev";
|
||||
this.app = express();
|
||||
this.computedFolder = computedFolder;
|
||||
this.loadAppDependencies().then(() => {
|
||||
this.app = express();
|
||||
this.initializeMiddlewares();
|
||||
this.initializeRoutes(routes);
|
||||
this.computedFolder = computedFolder;
|
||||
});
|
||||
}
|
||||
|
||||
public listen() {
|
||||
const httpServer = new http.Server(this.app);
|
||||
// const httpServer = new http.Server();
|
||||
// const io = new Server(httpServer);
|
||||
|
||||
httpServer.listen(this.port, () => {
|
||||
this.app.listen(this.port, () => {
|
||||
console.info(`=================================`);
|
||||
console.info(`======= ENV: ${this.env} =======`);
|
||||
console.info(`🚀 HTTP http://localhost:${this.port}`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue