CLI for parse-live-query-server (#2765)

* adds CLI for parse-live-query-server, adds ability to start parse-server with live-query server

* Don't crash when the message is badly formatted
This commit is contained in:
Florent Vilmart
2016-09-24 13:34:05 -04:00
committed by GitHub
parent a41cbcbc7f
commit 2183b84565
9 changed files with 281 additions and 115 deletions

View File

@@ -0,0 +1,15 @@
import definitions from './definitions/parse-live-query-server';
import runner from './utils/runner';
import { ParseServer } from '../index';
import express from 'express';
runner({
definitions,
start: function(program, options, logOptions) {
logOptions();
var app = express();
var httpServer = require('http').createServer(app);
httpServer.listen(options.port);
ParseServer.createLiveQueryServer(httpServer, options);
}
})