@

first drink

is on us 🍻

 

join us on slack

Today

1. Intro

2. Setup

3. The basics

4. Our first server

5. Wrap up 🍻

nodeschool

pixelbar

David &

John &

Tiemen &

Timon

anti-harassment policy

expectations...

setup

- terminal

- nodejs.org

- texteditor

let's start doing stuff

REPL

read–eval–print loop

// RECAP

// Definitions
var foo = 'bar';
let foo = 'bar';
const foo = 'bar';

// Arrow functions
const myFunction = () => {
    return 'bar';
}

// Classes
class myClass {
    someMethod () {
        return 'bar';
    }
}

// Promise
const myPromise = new Promise((resolve, reject) => {
    // ... do something async
    if(!error) {
        resolve(myResult);
    } else {
        reject(error);
    }
});

// Interpolation
const myVar = 'pixel';
const foo = `${myVar}bar`;

// Spread operator
const foo = ['pixel', 'bar'];
const newArray = [...foo, 'is', 'awesome'];

express

our first http server \o/

// in your terminal
mkdir pixelbar && cd pixelbar
npm init // hit enter a couple of times
npm install express --save
touch index.js

or when ur a pro:
build an irc trivia (w/ e.g. jService) chatbot...

npm install now -g

What we've learned...

Made with Slides.com