summaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'app.js')
-rw-r--r--app.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/app.js b/app.js
new file mode 100644
index 0000000..ca7f8cb
--- /dev/null
+++ b/app.js
@@ -0,0 +1,21 @@
+const feathers = require('@feathersjs/feathers');
+const express = require('@feathersjs/express');
+const socketio = require('@feathersjs/socketio');
+const cors = require('cors')
+
+
+
+const app = express(feathers());
+
+app.use(express.json());
+app.use(express.urlencoded({ extended: true }));
+app.use(express.static(__dirname));
+app.use(express.errorHandler());
+app.use(cors());
+
+app.configure(express.rest());
+app.configure(socketio());
+
+
+module.exports = app;
+