It is currently Thu Dec 14, 2017 1:18 pm

News News of Node.js

Site map of Node.js » Forum : Node.js

Node.js back-end for CrossUI

CrossUI Node.js Backend Demo

xuiService.js :

/**
* Important note: this demo application is for CrossUI created by Alex Pavlov ([email protected])
*/

var http = require('http'),
url = require('url'),
fs = require('fs'),
querystring = require('querystring'),
server,
net = require('net');

var getParams = function(req, callback){
if(req.method=='POST') {
var body = '';
req.on('data', function(chunk){
body += chunk;
})
.on('end', function() {
var obj = querystring.parse( body.replace( /\+/g, ' ' ) ) ;
callback( obj );
});
}
else if(req.method=='GET') {
var ...
Read more : CrossUI Node.js Backend Demo | Views : 5656 | Replies : 0


 

Login  •  Register


Statistics

Total posts 992 • Total topics 330 • Total members 35

cron