Guest User

Untitled

a guest
Oct 22nd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. /*
  2. Primer Script en Node.js
  3. @author: Fabian Ramirez <framirez@ayerviernes.com>
  4. */
  5. var MayFactoury = {
  6. IO: {
  7. nombre: "Fabian",
  8. apellido: "Ramirez",
  9. screen_name: "dokshor"
  10. },
  11. APP: {
  12. port: 1337,
  13. host: "127.0.0.1"
  14. }
  15. }
  16.  
  17. var http = require('http');
  18. http.createServer(function (req, res) {
  19. res.writeHead(200, {'Content-Type': 'text/plain'});
  20. res.end("Hello " + MayFactoury.IO.nombre + " " + MayFactoury.IO.apellido + " AKA " + MayFactoury.IO.screen_name);
  21. }).listen(MayFactoury.APP.port, MayFactoury.APP.host);
  22. console.log('Iniciando servidor');
Add Comment
Please, Sign In to add comment