File Structure:
- seed_database.js
- config.json
- models/
- index.js
- User.js
- UserType.js
Make sure that the SQL configs are in config.json
.
File Structure:
Make sure that the SQL configs are in config.json
.
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}' | |
}; |
var Class = | |
// Create a closure with an Immediately-Invoked Function Expression (IIFE) | |
(function () { | |
(function _init() { | |
// Similar to a static initializer in Java | |
// This is optional, but it prevents polluting the Class scope. | |
})(); | |
// Private static variable | |
var _static; |