193
welce toBOILERCAMP HOW TO WEB DEV

welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

welcome to…BOILERCAMP

HOW TO WEB DEV

Page 2: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Introduction / Project Overview

Page 3: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

The Plan

Page 4: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Personal Website/Blog

Page 5: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 6: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 7: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Schedule

• Introduction / Project Overview

• HTML / CSS

• Client-side JavaScript

• Lunch

• Node.js / Express.js

• MongoDB / MVC

Page 8: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

It’s okay if you don’t understand everything.

Page 9: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

It’s okay if you don’t finish a section.

Page 10: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Please ask for help.

Page 11: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

BoilerCamp.slack.com

Page 12: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Our Environment

Page 13: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 14: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Getting from an Idea to a Product

Page 15: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Ideas are easy. Implementation is hard.

Page 16: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 17: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 18: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 19: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 20: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Tech Stack

Page 21: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

What’s a tech stack?

Page 22: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

A tech (technology) stack is all of the technologies that make up our application.

Page 23: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

• What devices will the application run on? • Will my application need a server? • Will I need to store data somewhere?

Page 24: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

What devices will the application run on?

Desktop and mobile.

Page 25: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

What devices will the application run on?

Desktop and mobile.

(HTML / CSS)

Page 26: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Will my application need a server?

Yup.

Page 27: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Will my application need a server?

Yup.

(Node.js / Express.js)

Page 28: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Will I need to store data somewhere?

Yup.

Page 29: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Will I need to store data somewhere?

Yup.

(MongoDB)

Page 30: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Frontend versus Backend

Page 31: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Frontend

Page 32: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Frontend

Anything that the user can see and interact with.

Page 33: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Frontend

• HTML • CSS • JavaScript

Page 34: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Backend

Page 35: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Backend

Anything that the user can’t see and interact with.

Page 36: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Backend

• Ruby on Rails • PHP • Node.js • Java • Django

Page 37: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

How Internet Browsers Work

Page 38: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Text Magic Product

Page 39: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Java Code

Page 40: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Java Code

Java Compiler

Page 41: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Java Code

Java Compiler

Android App

Page 42: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

HTML Code

Page 43: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

HTML Code

Browser

Page 44: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

HTML Code

Browser Webpage

Page 45: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Webpage, Website, Webapp

Page 46: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Webpage

A single web document.

Page 47: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Website

A collection of webpages.

Page 48: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Webapp

A website with a backend.

Page 49: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Recap

Page 50: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

• The Plan • Our Environment • Getting from an Idea to a Product • How Internet Browsers Work

Page 51: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Questions?

Page 52: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

HTML / CSS

Page 53: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

What are HTML & CSS?

Page 54: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

What is HTML?

Page 55: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

HyperText Markup Language.

Page 56: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

HyperText Markup Language.

Page 57: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Markup?

Page 58: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

HTML makes up all of the content of a webpage.

Page 59: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

HTML is not a programming language.

Page 60: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Hello World in HTML

Page 61: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 62: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 63: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Breaking Hello World Down

Page 64: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Tags

Page 65: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 66: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 67: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Attributes

Page 68: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 69: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Common Tags

Page 70: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

• html • head • body • p, h1, h2, h3, h4 • div

Page 71: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

What is CSS?

Page 72: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Cascading Style Sheets.

Page 73: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

CSS is the language used to style the content of a webpage.

Page 74: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Beautifying Hello World with CSS

Page 75: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 76: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 77: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Breaking Beautified Hello World Down

Page 78: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Selectors

Page 79: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 80: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Properties

Page 81: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 82: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Classes

Page 83: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 84: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Separating CSS from HTML

Page 85: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

index.html style.css

Page 86: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Recap

Page 87: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

• HTML is content • CSS is style

Page 88: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Questions?

Page 89: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Client-Side JavaScript

Page 90: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

What is JavaScript?

Page 91: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

JavaScript is a programming language

Page 92: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

JavaScript is a programming language that runs in the browser

Page 93: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Hello World in JavaScript

Page 94: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 95: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 96: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Breaking Hello World Down

Page 97: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Using a function called console.log

Page 98: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Similar to System.out or printf

Page 99: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Variables

Page 100: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Variables store information

Page 101: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

JavaScript variables are special

Page 102: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Instead of declaring ints, floats, strings, etc. JavaScript infers everything at runtime

Page 103: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Everything is declared with var

Page 104: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Back to Hello World

Page 105: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 106: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 107: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 108: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Functions

Page 109: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Functions encapsulate the logic

Page 110: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Functions have 3 parts: Arguments, Body, Return

Page 111: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Arguments are the inputs

Page 112: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Body is the logic

Page 113: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Return is the output

Page 114: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Back to Back to Hello World

Page 115: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 116: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 117: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 118: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 119: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 120: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

But how can we use this with our website?

Page 121: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

What is jQuery?

Page 122: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Let’s JavaScript manipulate the DOM

Page 123: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

What’s the DOM?

Page 124: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

DOM is a model of all the HTML on the page

Page 125: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

jQuery selects things in the DOM (similar to CSS)

Page 126: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

jQuery adds logic to those things

Page 127: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

jQuery can add effects and it can add events

Page 128: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Back to Hello World

Page 129: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 130: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 131: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 132: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 133: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Recap

Page 134: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

• JavaScript is a programming language typically run on browsers

• jQuery is a library that lets us change things on the web page

Page 135: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Questions?

Page 136: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Node.js / Express.js

Page 137: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

What are Node.js and Express.js?

Page 138: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

What is Node.js?

Page 139: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Node.js is the only real dev language

Page 140: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Node.js is a wrapper around JavaScript

Page 141: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Instead of only running the browser, JavaScript can now run outside the browser

Page 142: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Hello World in Node.js

Page 143: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 144: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 145: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 146: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 147: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 148: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 149: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Node.js also uses JSON

Page 150: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

So what’s JSON?

Page 151: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

JavaScript Object Notation

Page 152: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

It’s a serialized version of a JavaScript object

Page 153: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

We have keys and values

Page 154: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

And the values of a key can be another object

Page 155: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

What is Express.js?

Page 156: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Express.js Framework for building web apps

Page 157: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Express.js takes care of the server set up, so you can just focus on the logic

Page 158: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 159: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Hello World in Express.js

Page 160: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 161: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Routes

Page 162: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Routes are like roads for the internet

Page 163: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

They handle the different URLs of your site

Page 164: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Routing example in Express.js

Page 165: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 166: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 167: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 168: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

But what if we want to handle server logic in our HTML?

Page 169: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

What is Handlebars?

Page 170: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Templating engine

Page 171: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Handles server logic in your HTML

Page 172: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Handlebars Example

Page 173: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 174: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 175: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying
Page 176: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Recap

Page 177: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

• Node.js lets you run JavaScript outside of the browser

• Express.js is a Node.js framework for building web apps

• Handlebars lets us include server logic in the frontend

Page 178: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Questions?

Page 179: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

MongoDB / MVC

Page 180: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

What are MongoDB & MVC?

Page 181: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

What is MongoDB?

Page 182: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

MongoDB is a database

Page 183: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Let’s us store a ton of information in the form of JSON (BSON)

Page 184: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

It’s a document based data store

Page 185: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Allows us to insert JSON, update it, and retrieve it later.

Page 186: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

What is MVC?

Page 187: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

MVC is a way to organize and structure your code

Page 188: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Controller

Model View

Page 189: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Controller

Model View

Database

Page 190: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Recap

Page 191: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

• MongoDB is a super JavaScript friendly database

• MVC is a great way to organize code

Page 192: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Questions?

Page 193: welc e to BOILERCAMP - GitHub · • Introduction / Project Overview • HTML / CSS ... Cascading Style Sheets. CSS is the language used to style the content of a webpage. Beautifying

Thanks!