feat(server): seperate server part and ability to run server without electron

This commit is contained in:
Alexey Kasyanchuk
2018-04-05 16:28:02 +03:00
parent fac6736710
commit e244fabd2c
12 changed files with 227 additions and 203 deletions

14
src/background/server.js Normal file
View File

@ -0,0 +1,14 @@
const appConfig = require('./config')
const spiderCall = require('./spider')
const dbPatcher = require('./dbPatcher')
const startSphinx = require('./sphinx')
sphinx = startSphinx(() => {
dbPatcher(() => {
spider = spiderCall((...data) => {
}, (message, callback) => {
}, './', '0.7.1', 'development')
}, null, sphinx)
}, './', () => {})