Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Primer Script en Node.js
- @author: Fabian Ramirez <framirez@ayerviernes.com>
- */
- var MayFactoury = {
- IO: {
- nombre: "Fabian",
- apellido: "Ramirez",
- screen_name: "dokshor"
- },
- APP: {
- port: 1337,
- host: "127.0.0.1"
- }
- }
- var http = require('http');
- http.createServer(function (req, res) {
- res.writeHead(200, {'Content-Type': 'text/plain'});
- res.end("Hello " + MayFactoury.IO.nombre + " " + MayFactoury.IO.apellido + " AKA " + MayFactoury.IO.screen_name);
- }).listen(MayFactoury.APP.port, MayFactoury.APP.host);
- console.log('Iniciando servidor');
Add Comment
Please, Sign In to add comment