Express Yourself

An Introduction to Web ApplicationsĀ 

w/ Express

"I BUILD WEB APPLICATIONS and WROTE THIS SONG ABOUT EXPRESS"

~Madonna

What is a Web Application?

Web Browser or Client

Web Server / Scripting Language

Database

HTTP / Hyper Text Transfer Protocol

( GET / POST / PUT / DEL )

Install NodeJS

http://nodejs.org/download/

What is NodeJS?

NodeJS is a server-side scripting language. A browser communicates to NodeJS on the server via HTTP packets.

Install Express

What is Express?

# - These lines are only notes, don't type into your terminal
$ - These lines are the money lines...aka type them

# Create a new directory on your desktop
$ mkdir express-less

# Change into that directory
$ cd express-less

# Initialize the directory for a NodeJS application...and many happy returns
$ npm init

# Install Express
$ npm install express --save

#YOU NOW HAVE AN EMPTY EXPRESS APPLICATION...BOOOORING.

"Fast, unopinionated, minimalist web framework for NodeJS"

Use A Generator

# - These lines are only notes, don't type into your terminal
$ - These lines are the money lines...aka type them

# Install the express generator, the -g flag installs GLOBALLY
$ npm install express-generator -g

# Use the generator to GENERATE an application
$ express express-yourself

# Change into the directory and npm install
$ cd express-yourself && npm install

#YOU NOW HAVE AN EXPRESS APPLICATION WITH SOME MEAT....COOOOOL :D

#FIRE IT UP
$ npm start

Let's Check it Out...

Resources:

  • http://nodejs.org/
  • http://expressjs.com/
  • http://www.sublimetext.com/3
  • https://www.google.com/
  • https://www.youtube.com/results?search_query=express+javascript

NOW GO BUILD ALL THE THINGS!!

....like Madonna

express-yourself

By Jason Sewell

express-yourself

Intro to web applications using ExpressJS.

  • 1,834