Skip to content

Instantly share code, notes, and snippets.

@thgaskell
thgaskell / README.md
Created Feb 22, 2015
Sequelize Associations
View README.md

File Structure:

  • seed_database.js
  • config.json
  • models/
    • index.js
    • User.js
    • UserType.js

Make sure that the SQL configs are in config.json.

@thgaskell
thgaskell / Gulpfile.js
Created Mar 25, 2014
Creates a mini development environment for serving static content.
View Gulpfile.js
var gulp = require('gulp'),
gutil = require('gulp-util');
var paths = {
css: 'assets/css/**/*.css',
html: 'assets/html/**/*.html',
js: 'assets/js/**/*.js',
img: 'assets/images/**/*.{png,jpg,jpeg,gif}'
};