summaryrefslogtreecommitdiffhomepage
path: root/example/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'example/index.js')
-rw-r--r--example/index.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/example/index.js b/example/index.js
new file mode 100644
index 0000000..1a3b72d
--- /dev/null
+++ b/example/index.js
@@ -0,0 +1,11 @@
+const path = require('path');
+const express = require('express');
+
+const app = express();
+const port = 3000;
+
+app.use(express.static('./public/'));
+
+app.listen(port, () => {
+ console.log(`🚀 Server ready at http://localhost:${port}`);
+});