NODE

TIME

It's

Our Main Goal

Prepare For React

PREPARING FOR REACT

  • Build our own JSON API
  • Build a SPA with that API

Back-End JSON API

Front-End

SINGLE PAGE APPS

jQuery

Vanilla JS

React

Angular

Express

Rails

Django

Flask

IF YOU'RE ALREADY COMFORTABLE WITH

  • Express basics
  • Restful routing
  • Responding with JSON
  • MongoDB basics
  • Using Mongoose

You might not need this section!

OUR API GAMEPLAN

THE DATA!

Field Type
name String
completed Boolean
createdDate Date

THE ROUTES!

Verb Route Description
GET /api/todos List all todos
POST /api/todos Create new todo
GET /api/todo/:todoId Retrieve a todo
PUT /api/todo/:todoId Update a todo
DELETE /api/todo/:todoId Delete a todo

LET'S GET INSTALLING

We're Using Cloud9

(you don't have to)

(but you should)

Installing Express

+

The Most Basic App

RESPONDING WITH JSON

DATABASE SETUP

(ugh)

Some Code Stuff

users.push(
    {
        persona: pickPersona(),
        data: [
                username,
                joinDate
            ]
    }
)

Simple Animations

Make Sure To Present Slides To See The Animations

YOUR

TURN

Node/Express/Mongo Refresher

By Colt Steele

Node/Express/Mongo Refresher

  • 3,887