Skip to content

Instantly share code, notes, and snippets.

Francis Wertz fwertz

Block or report user

Report or block fwertz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@fwertz
fwertz / app.js
Created May 23, 2016
Basic load balancing NodeJS (Nginx + PM2 + Express)
View app.js
import express from 'express';
// ... So much space for unstable dependency imports ...
let app = express();
// ... Insert your own routing magic ...
export default app;
@fwertz
fwertz / loadSavedDesignService.js
Last active Dec 15, 2015
Sample AWS Lambda Service Handlers
View loadSavedDesignService.js
var AWS = require( 'aws-sdk' ),
env = process.env;
var db = new AWS.DynamoDB({
accessKeyId: env.ACCESS_KEY_ID,
secretAccessKey: env.SECRET_ACCESS_KEY
});
module.exports = {
@fwertz
fwertz / server.js
Last active Nov 11, 2015
Sample express.js routing
View server.js
var express = require( 'express' ),
body = require( 'body-parser' ),
env = process.env;
App = express();
/**
* Load up the App.locals as a reference carrying singleton superstar
*/
App.locals = {
You can’t perform that action at this time.