diff options
| author | jw255 | 2018-01-10 10:20:00 +0000 |
|---|---|---|
| committer | jw255 | 2018-01-10 10:20:00 +0000 |
| commit | 2bf69ffbafc342b1ab1999a8a43811b6a22d6208 (patch) | |
| tree | c385b4b2a98fcf446486ad3f190b43459be6bf6c /src/index.ts | |
| parent | TODO.md should now render properly on GitLab (diff) | |
| download | medicine-2bf69ffbafc342b1ab1999a8a43811b6a22d6208.tar.gz medicine-2bf69ffbafc342b1ab1999a8a43811b6a22d6208.zip | |
barebone .ts node server. pushing to see if all dependencies are included and if it runs on the host server
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 |
