Skip to content

Instantly share code, notes, and snippets.

View jnewman12's full-sized avatar
🎯
Focusing

James Newman jnewman12

🎯
Focusing
  • Santa Monica, CA
View GitHub Profile
@jnewman12
jnewman12 / Mongo.md
Last active March 30, 2023 11:47
Data Modeling With Mongo

Data Modeling with MongoDB

mongo


Objectives

  • Understand model relationships in MongoDB
  • Understand One-to-Many relationships
@jnewman12
jnewman12 / expressdelete.md
Last active January 24, 2017 20:00
express use delete
  • base of project

npm install method-override

  • in server.js
var methodOverride = require('method-override');
// override with POST having ?_method=DELETE
app.use(methodOverride('_method'))
@jnewman12
jnewman12 / ExpressWalkthrough.md
Last active January 24, 2017 18:04
Express App Walkthrough

Express App Walk Through

express


Lesson Objectives

  • Learn How to Use the Express Generator
  • Use our learned methods to structure our application
@jnewman12
jnewman12 / EJS-Lab.md
Created January 20, 2017 00:38
EJS lab

Views in Express

Introduction

We've already set you up with an API for capturing your favorite embarrassing quotes – Quotes, Inc. We've thrown in a few styles for you, too, but you might have to mimic some class names and templates. Feel free to delete our style and fancy it up on your own.

Your goal will be to switch an Express JSON API to render views. It's up to you to take it from JSON to EJS, and we haven't given you a lot to start with. It'll help you practice installing the tools you need and setting them up from scratch.

Exercise

@jnewman12
jnewman12 / EJS.md
Created January 20, 2017 00:37
EJS Templating Lecture

Views in Express


Objectives

After this lesson, students will be able to:

  • Create and render views in an Express application
  • Explain the differences and similarities between the syntax of ERB and EJS
  • Render partials and iterate over data in views
@jnewman12
jnewman12 / assocations-lab.md
Created January 10, 2017 09:47
Lab for Multiple Associations

Associations Lab


WDI Overflow Code Along

wdi overflow


@jnewman12
jnewman12 / Associations.md
Created January 10, 2017 09:35
Rails Multi Model Associations

Rails Multi Model Associations


Objectives

  • Understand Model Relationships, and how they relate to application data
  • Understand has_many, has_one, and belongs_to

@jnewman12
jnewman12 / AssetPipeline.md
Last active January 10, 2017 08:12
Asset pipeline lesson

Rails Asset Pipeline

asset pipeline


Objectives

  • Understand the asset pipeline, and the benefits we get for using it
  • Learn about Sprockets, and what it does for us behind the scenes
@jnewman12
jnewman12 / Paperclip.md
Last active January 9, 2017 10:11
Lesson and Lab for paperclip

Paperclip and File Uploads with Rails

rails + paperclip


Lesson Objectives

  • set up paperclip and all external dependencies on your machine
  • set up an account on AWS to store our uploaded images inside AWS S3
  • set up a rails project with paperclip
@jnewman12
jnewman12 / Sass.md
Created January 9, 2017 03:40
Sass lesson/lab/examples

SASS Lesson

Objectives

  • Be able to describe what a CSS preprocessor does and why it's useful
  • Be able to use SASS’s
    • nesting
    • variables
    • mixins