From b504029067d33aba8b71f696497d4ea03ea19014 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 14 Nov 2020 14:29:32 +0300 Subject: feat: initialize feathers app --- app.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 app.js (limited to 'app.js') 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; + -- cgit v1.2.3