-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapp.js
More file actions
42 lines (18 loc) · 681 Bytes
/
app.js
File metadata and controls
42 lines (18 loc) · 681 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
Basic Server Side request && response off a node
*/
var PORT = 7337;
var APP_ID = " NODE-AI "
var fwk = require('./core/commandFramework.js');
require('./core/JSextensions.js'); //core JS language extensions ... trim() etc
var utils = require('./core/utils.js');
var express = require('express');
var app = express.createServer();
app.get('/', function(req, res)
{
res.send(fwk.processRequest(req));
console.log( "request processed at " + utils.TheUte().getTimestamp() );
}
);
app.listen(PORT);
console.log( "Node.js " + APP_ID.trim() + " started and listening on port " + PORT + " at [" + utils.TheUte().getTimestamp() + "]");