forked from xpl/turing-2d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.js
26 lines (18 loc) · 778 Bytes
/
server.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* Run this file with
> node server.js
*/
require ('useless')
Turing2D = $singleton (Component, {
devHint: _.noop,
api: function () { return {
'/': this.file ('./index.html'),
':file': this.file ('./') } },
$depends: [
// require ('useless/server/supervisor'),
// require ('useless/server/deploy'),
require ('useless/server/http'),
require ('useless/server/templating'),
require ('useless/server/websocket'),
require ('useless/server/devtools'),
require ('useless/server/uptime') ],
init: function (then) { log.i ($uselessPath); log.green ('Turing2D is running at http://localhost:1333'); then () } })