Skip to content

Instantly share code, notes, and snippets.

@seanpmaxwell
Last active May 29, 2019 05:15
Show Gist options
  • Save seanpmaxwell/03467df1430b3083d94de17f25f72e48 to your computer and use it in GitHub Desktop.
Save seanpmaxwell/03467df1430b3083d94de17f25f72e48 to your computer and use it in GitHub Desktop.
TypeScriptFullStackShell/src/DemoServer.ts
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