SoundCove's application server.
$ npm install --save soundcove/app-server
var server = require('app-server');
var app = server(opts);
Create an application server.
opts
(Object
): An object of options for the server.opts.html
(String
): Path to the HTML for the application. (Default:index.html
)opts.js
(String
): Path to the JavaScript for the application. (Default:index.js
)opts.css
(String
): Path to the CSS for the application. (Default:index.css
)opts[404]
(String
): Path to the 404 page for the application. (Default:404.html
)opts.favicon
(String
): Path to the favicon. (Default:favicon.png
)
Returns http.Server
.
var app = server({ ...opts });
app.listen(8970, '0.0.0.0', function() {
console.log('Listening');
});
SoundCove |