Last active
May 29, 2019 05:15
-
-
Save seanpmaxwell/03467df1430b3083d94de17f25f72e48 to your computer and use it in GitHub Desktop.
TypeScriptFullStackShell/src/DemoServer.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Server } from '@overnightjs/core'; | |
import { Logger } from '@overnightjs/logger'; | |
class DemoServer extends Server { | |
private readonly SERVER_START_MSG = 'Demo server started on port: '; | |
constructor() { | |
super(); | |
} | |
public start(port: number): void { | |
this.app.listen(port, () => { | |
Logger.Imp(this.SERVER_START_MSG + port); | |
}); | |
} | |
} | |
export default DemoServer; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment