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
var koa = require('koa'); | |
var app = koa(); | |
var router = require('koa-router')(); | |
var util = require('util'); | |
var compress = require('koa-compress') | |
app | |
.use(compress({ | |
threshold: 5, | |
flush: require('zlib').Z_SYNC_FLUSH |
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
/* | |
* Not actually a JS file; Normally you'd break these components up. | |
*/ | |
/* creating the database connection */ | |
var db = new Sequelize('database', 'username', 'password', ...); | |
/* loading the models */ | |
var fs = require('fs'); | |
var path = require('path'); |
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
/** | |
* @module TimeStamp | |
* @todo Unit tests | |
*/ | |
'use strict'; | |
var moment = require('moment'); | |
/** | |
* @class | |
* @param {TimeStamp|string} [src] - A timestamp to parse |
NewerOlder