/g-cli

command line workshop

Primary LanguageJavaScript

PART ONE: Command Line & Node

Command Line

Setup

Slides

Command Line Slides

Practice Makes Perfect

https://github.com/veltman/clmystery


Node

Setup

https://nodejs.org/en/

Slides

http://slides.com/lizh/intro-to-node-js#/

I Do / We Do / You Do

  • write javascript to say “hello world”, then run it with node
  • create a file and write something to it
  • read something from a file

Practice makes Perfect (First 4)

https://www.npmjs.com/package/learnyounode


PART TWO: Express

Objectives:

  • Build a simple Express App
  • Use Node Packagae Manager (npm) to install node modules
  • Use npm to start a server
  • Use Express Generator to create a basic REST APP
  • Understand the structure of an Express App
  • Create HTTP requests from the command line

Express Intro Slides

Express HTTP Server Concepts