Skip to content

Instantly share code, notes, and snippets.

@MacoChave
Last active June 1, 2018 02:28
Show Gist options
  • Save MacoChave/89e42c96305bc32c7506b15544696fe0 to your computer and use it in GitHub Desktop.
Save MacoChave/89e42c96305bc32c7506b15544696fe0 to your computer and use it in GitHub Desktop.
Node JS
const auth = firebase.auth();
auth.SignInWithEmailAndPassword(email, pass);
auth.CreateUserWithEmailAndPassword(email, pass);
auth.onAuthStateChanged(firebaseUser => {...})
#INICIAR npm EN EL PROYECTO
sudo npm init
#AGREGAR UN MODULO AL npm ACTUAL
sudo npm i <modulo> --save
#DESINSTALAR UNA DEPENDENCIA DEL npm
sudo npm uninstall <modulo> --save
#INSTALAR TODAS LAS DEPENDENCIAS CARGADAS EN JSON npm
sudo npm instalL
#DEBUGEAR
node inspect <app>.js
#BREAKPOINT EN LA LINEA DESEADA
breakpoint;
#SIGUIENTE LINEA
> n
#EJECUTAR HASTA EL FINAL
>c
#INSPECTOR DE VARIABLES
>repl
#PREGUNTAR EL VALOR DE ALGUNA VARIABLE
>variable
#API DIRECCIONES GOOGLE MAPS
http://maps.googleapis.com/maps/api/geocode/json?address=Tikal
#LISTADO DE USER AGENT
http://www.useragentstring.com/pages/useragentstring.php
#EXPRESS NODE JS
http://expressjs.com/es/starter/hello-world.html
http://expressjs.com/es/starter/generator.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment