This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name prueba.miguhruiz.xyz; | |
location / { | |
root /home/MiguhRuiz; | |
index index.html; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var path = require('path'); | |
module.exports = { | |
entry: './react/render.js', | |
output: { | |
path: './public/', | |
filename: 'build.js' | |
}, | |
module: { | |
loaders: [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Mi Primera App En Node</title> | |
</head> | |
<body> | |
<center> | |
<h1>Estoy sirviendo estáticos con Node C:</h1> | |
</center> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! jQuery v2.1.4 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */ | |
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l=a.document,m="2.1.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return n.each(this,a,b)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nav | |
height 19px | |
.login | |
background #A30006 | |
border-radius 5px | |
height 30px | |
margin-left 32.5em | |
position absolute | |
top 1.2em |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Estás definiendo que es una Twitter Card --> | |
<meta name="twitter:card" content="summary" /> | |
<!-- Usuario de Twitter --> | |
<meta name="twitter:site" content="@MiguhRuiz" /> | |
<!-- Título del Sitio o Producto --> | |
<meta name="twitter:title" content="Miguh Ruiz, Mi Sitio Personalr" /> | |
<!-- Descripción breve --> | |
<meta name="twitter:description" content="Soy un gran desarrollador apasionado el cual está creando Twitter Cards, mientras que sean gratis :P" /> | |
<!-- Logo de la cuenta de Twitter o Producto --> | |
<meta name="twitter:image" content="https://pbs.twimg.com/profile_images/606522502534307840/mE9VJ79B.jpg" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Drondinez Control Panel</title> | |
</head> | |
<body> | |
<h2>¿Qué quieres hacer con drondinez</h2> | |
<p><a href="/">Inicio</a></p> | |
<p><a href="/despegar">Despegar</a></p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title></title> | |
</head> | |
<body> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Colección de usuario y contraseña que te dejará entrar al sitio, para cosas avanzadas esto debe ser remplazado por una base de datos | |
var basededatos = { | |
usuario: "freddier", | |
password: "mejorandola" | |
}; | |
console.log("Arrancando server de Node :)"); | |
//Solicitamos a Node las librerías "Express" y "Body-parser". | |
var express = require("express"); | |
var parcero = require("body-parser"); | |
//Asignamos a la variable web el uso de express. |