Skip to content

Instantly share code, notes, and snippets.

@ingshtrom
ingshtrom / project-structure-guidelines.md
Last active August 29, 2015 14:05
Project structure guidelines that I think I want to follow for my projects.

Project Guidelines

Starting with mystic-noggin, I want to start keeping track of my project guidelines so that I can keep my projects consistent!...maybe.

Node.js

  • main 3 directories
    • pub: contains all generated files (usually from Grunt)
    • src: all source code. Within there are 'client' and 'server sections
    • test: all the tests for the src/ code
@ingshtrom
ingshtrom / phat-logger.js
Last active August 29, 2015 14:05
The default logger config I use for my projects (minus loggly and logentries)
var winston = require('winston'),
config = require('./config');
var consoleConfig, fileConfig;
// MODULE API
module.exports.logger = configure();
// MODULE IMPLEMENTATIONS
function configure () {
// add our custom transports for all loggers