diff options
Diffstat (limited to 'src/index.ts')
| -rw-r--r-- | src/index.ts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..80a02d9 --- /dev/null +++ b/src/index.ts @@ -0,0 +1,15 @@ +console.log('Hello, TypeScript!'); + + + +import app from './app' + +const port = process.env.PORT || 3000 + +app.listen(port, (err) => { + if (err) { + return console.log(err) + } + + return console.log(`server is listening on ${port}`) +})
\ No newline at end of file |
