Skip to content

Movie Night - Taller de Node.JS para requests y Web Scraping

Notifications You must be signed in to change notification settings

reservamos/movie-night

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Movie Night - Node.JS Workshop

Hacking Websites with Node.js. Taller por el equipo de tecnología de © Reservamos.mx. Para efectos de este workshop cuando hablamos de Javascript nos referimos a EcmaScript 6 o ES6 6.

Requisitos

Instalar

  1. Clonar o bajar el repositorio
  2. Dentro del folder del repositorio correr: npm install

Correr el servidor

npm run start

Hackear código

npm run hack

Antes de empezar

Algunas cosas que hay servirán durante el workshop:

// 1. Javascript is a dynamic language. So no types
const name = "Adrian Cuadros"
let age = 32

// 2. Short function declaration
const saySomething = (something) => {
  console.log(`You said: ${something}`);
}

saySomething("Hi!")

// 3. Javascript Objects
const fruit = {
  name: 'Apple',
  color: 'red'
};
console.log(`${fruit.name} (${fruit.color})`);

// 4. Arrays and array functions
const fruits = [
  { name: 'Apple', color: 'red' },
  { name: 'Orange', color: 'orange' },
  { name: 'Lemon', color: 'green' }
];

fruits.forEach((fruit) => {
  console.log(fruit.name);
});

let firstGreenFruit = fruits.find((fruit) => {
  return fruit.color === 'green';
});
console.log(firstGreenFruit.name);

// 5. Promises
let promise = new Promise((resolve, reject) => {
  setTimeout(resolve, 3000);
});

promise.then(() => {
  saySomething("Ready!");
}, () => {
  saySomething("Oh no!");
});

Herramientas y conceptos

Bonus

Prácticas en Reservamos

Escríbenos a [email protected] con cualquier información que tengas para compartirnos.

About

Movie Night - Taller de Node.JS para requests y Web Scraping

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published