View macSetup.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Install command-line tools using Homebrew. | |
# Ask for the administrator password upfront. | |
sudo -v | |
# Keep-alive: update existing `sudo` time stamp until the script has finished. | |
while true; do | |
sudo -n true |
View macSetup.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Install command-line tools using Homebrew. | |
# Ask for the administrator password upfront. | |
sudo -v | |
# Keep-alive: update existing `sudo` time stamp until the script has finished. | |
while true; do | |
sudo -n true |
View server.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import http from 'http'; | |
import express from 'express'; | |
import bodyParser from 'body-parser'; | |
import cookieParser from 'cookie-parser'; | |
import expressValidator from 'express-validator'; | |
import Session from 'express-session'; | |
import morgan from 'morgan'; | |
import mongoose from 'mongoose'; | |
import passport from 'passport'; | |
import { createClient as createRedisClient } from 'redis'; |