aboutsummaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'app.js')
-rw-r--r--app.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/app.js b/app.js
new file mode 100644
index 0000000..0bbd1f3
--- /dev/null
+++ b/app.js
@@ -0,0 +1,13 @@
+require("dotenv").config();
+const express = require("express");
+
+const motto = require("./motto");
+
+const app = express();
+
+app.use(express.urlencoded({ extended: true }));
+app.use(express.json());
+
+app.use("/motto", motto);
+
+app.listen(5005, () => console.log("Server started on http://localhost:5005"));