Skip to content

Instantly share code, notes, and snippets.

View mdctenga's full-sized avatar

Matt Tengasantos mdctenga

View GitHub Profile

Keybase proof

I hereby claim:

  • I am mdctenga on github.
  • I am mdctenga (https://keybase.io/mdctenga) on keybase.
  • I have a public key ASBtJYMfc98Dzs7SzCzIaROG-0Xc9xmgeVxQk3FWFQ1bLAo

To claim this, I am signing this object:

@mdctenga
mdctenga / signup.md
Last active August 29, 2015 14:23 — forked from sgnl/signup.md

The pitches have completed. You and your team have decided on the technologies and the tech lead has already begun hacking away. The Biz Dev approaches you and whispers two words, "User Acquisition". You can already feel the pressure...

Hey so like, we need to go out to the Night Market and start polling for opinions on our service. I already bought the domain and so I just need you to build the sign-up form so we can gather emails. Should be easy right? Cool. Oh, I need this done ASAP because I'm leaving for the market now. Thaaaaaanks :D

Goal

You have been tasked to build the landing page which will have a Sign Up Form. User's will visit the page, be asked to enter their first and last name, and email address. Then the User will be presented with a thank you message. You must use ExpressJS, implement some basic validations on the data coming in, and do this quick!

Requirements

Your Form will POST data to your '/signup' endpoint. No XHR will be used.

@mdctenga
mdctenga / Ruh-Roh.md
Last active August 29, 2015 14:23 — forked from jaywon/Ruh-Roh.md

###Email Hell

We just found out that there is a bug in production that our e-mail function was iterating errantly and sending duplicate e-mails to many users. We need to fix this quickly but we don't want to send out a mass apology letter to all of our users.

Our sysadmin gave us the SMTP logs and we need to process the logs and identify which users received multiple e-mails so that we can directly send them a follow up e-mail explaining the situation and offer super cool swag to keep them on as customers.

Also, the boss wants this done ASAP, we don't have time to do this manually...HAAALLLLPPP!

###The Fix

@mdctenga
mdctenga / validation.md
Last active August 29, 2015 14:23 — forked from sgnl/validation.md

Express Middleware Exercise - Validation

Your job is to add validations to the messages being posted to your Chatroom Application's Server by implementing Middleware.

Each validation requirement below will be it's own middleware in the series.

Commit your code each time you successfully implement a new middleware handler.

Validation Requirements

Payload