blob: 54ff8482f10d61385c4747c3330c5ec04fa77a3c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/* tslint:disable:no-console
* This only goes here until we have a logging system */
import app from './app';
console.log('Welcome to the CS3099 Server thingy!');
const DEFAULT_PORT: number = 3000;
// Use default port 3000 or port supplied by OS
const port: number = process.env.PORT
? process.env.PORT
: DEFAULT_PORT;
app.listen(port, (err: Error): void => {
if (err) {
return console.log(err);
}
return console.log(`server is listening on port ${port}`);
});
|