Skip to content

Instantly share code, notes, and snippets.

View drmikeh's full-sized avatar

Dr. Mike Hopper drmikeh

  • The Home Depot
  • Atlanta, GA
View GitHub Profile
@drmikeh
drmikeh / gist:3096a816ec5248a7f8f4
Last active October 27, 2016 16:40
README for the GA Camping Store with the MEAN Stack

GA Camping Store

Steps to Reproduce This Project

Step 1 - Setup The Project

1a. Install the Angular Fullstack Yeoman generator.

npm install -g generator-angular-fullstack
@drmikeh
drmikeh / gist:0a6abe14618aa22fdba6
Last active January 8, 2023 19:57
Intro to Software Testing with Code Along

Testing a MEAN Stack App

Intro to Testing

  • Problem: how can we automate the testing of our software components?

Types of Testing:

See: Types of Software Testing

@drmikeh
drmikeh / express-todos.md
Created August 10, 2016 12:14
Express TODO App with MongoDB and Mongoose

Express TODO App with MongoDB and Mongoose

@drmikeh
drmikeh / readme.md
Last active August 17, 2016 18:06
Express Movies - MEN Stack Code Along

Express Movies - MEN Stack Code Along

Step 1 - Create the Project

mkdir express-movies
cd express-movies
express -e
npm install
@drmikeh
drmikeh / wdi8-day6.md
Last active November 7, 2016 14:32
ATL WDI Assignments for Monday November 7

Lessons and Labs for Tuesday, Nov. 8

Below are the lessons and labs for today. I recommend going over this material first and then following up with the JavaScript Circuits material as a review. When doing the JavaScript Circuits you can skip over the videos and just work through the exercises and quizzes.

Morning

@drmikeh
drmikeh / wdi8-day8.md
Last active November 9, 2016 14:21
Reading, Lessons and Labs for Wednesday, Nov. 9

ATL WDI 8 - Day 8 - Wednesday, Nov. 9, 2016

JavaScript Circuits

  • Continue working through the JavaScript Circuits curriculum.
  • You should work through Unit 3 by EOD today.
  • If a section is moving to slow for you then you can quickly skip through the section until you get to the exercises and quizzes. Do those to check that you understand the material.

WDI Lessons

@drmikeh
drmikeh / sql-vs.nosql.md
Created December 7, 2016 20:57
SQL vs. NoSQL and Embedded vs. Linked Documents

Mike's Thoughts regarding NoSQL vs. SQL

Wow, lots of discussion here. Here are my thoughts regarding MongoDB, Mongoose, SQL, etc.:

  • In real applications there is no such thing as non-relational data - data will relate to other data and this in inherently a difficult problem to optimize.
  • The trade-off between SQL and NoSQL is between the benefits of ACID vs. the benefits of having a schema-less DB and super high scalability (via partitioning and not having to enforce ACID)
  • Embedded documents should be used very sparingly, otherwise it sets you up for failure.
  • Prefer linking over embedding documents when:
    • the lifecycles differ between the "parent" and the "child" docs (deleting one with/without deleting the other)
  • you need to search or filter for specific child docs

Asciidoc on GitHub

@drmikeh
drmikeh / cookies-and-tokens.adoc
Created January 11, 2017 23:27
Cookies and Tokens for AuthN

Authentication with AngularJS

Review

Authentication (AuthN) is used to establish and verify a user’s identity. Typically there are 3 functions for the user to perform:

  1. Registration

  2. Login

  3. Logout