aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAutumn <git@autumnfo.rest>2026-05-11 17:34:16 +0100
committerAutumn <git@autumnfo.rest>2026-05-11 17:34:16 +0100
commitd51a6e14f75e3394ec9ca8ebc72fb10bf693edc7 (patch)
treecc5032e0c1e011a512fdd65bb7168dab786203b2 /src
parentfb2b0b965e13b4c33a27421d03e0e87978fda4ab (diff)
[app] created base ExpressJS app
Diffstat (limited to 'src')
-rw-r--r--src/app.ts12
-rw-r--r--src/server.ts13
2 files changed, 25 insertions, 0 deletions
diff --git a/src/app.ts b/src/app.ts
new file mode 100644
index 0000000..a8dd9f9
--- /dev/null
+++ b/src/app.ts
@@ -0,0 +1,12 @@
+//
+// ~~~ main app
+//
+
+// imports
+import express from "express"
+
+// setup app
+const app = express()
+
+// export app
+export default app
diff --git a/src/server.ts b/src/server.ts
new file mode 100644
index 0000000..8741e16
--- /dev/null
+++ b/src/server.ts
@@ -0,0 +1,13 @@
+//
+// ~~~ server process
+//
+
+// setup app
+import app from "./app.ts"
+
+const PORT = 3000
+
+// start app
+app.listen(PORT, () => {
+ console.log(`=> starting homecontrol on port ${PORT}`)
+})