aboutsummaryrefslogtreecommitdiff
path: root/src/index.ts
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-05-29 14:48:50 -0700
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-05-29 14:53:08 -0700
commit548498d37424f2ac579770962b627aeba61925e8 (patch)
tree1d02f147b82dd8f9a48296f01a2ae2e84d71958c /src/index.ts
downloadchessh-bot-548498d37424f2ac579770962b627aeba61925e8.tar.gz
chessh-bot-548498d37424f2ac579770962b627aeba61925e8.zip
added bot
Diffstat (limited to 'src/index.ts')
-rw-r--r--src/index.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/index.ts b/src/index.ts
new file mode 100644
index 0000000..6265d20
--- /dev/null
+++ b/src/index.ts
@@ -0,0 +1,8 @@
+import app from './app';
+
+const port = process.env.PORT || 4200;
+app.listen(port, () => {
+ /* eslint-disable no-console */
+ console.log(`Listening: http://localhost:${port}`);
+ /* eslint-enable no-console */
+});