Skip to content

Instantly share code, notes, and snippets.

@ahdinosaur
Last active March 17, 2016 10:12
Show Gist options
  • Save ahdinosaur/780cc0a2c8d12c56d4b1 to your computer and use it in GitHub Desktop.
Save ahdinosaur/780cc0a2c8d12c56d4b1 to your computer and use it in GitHub Desktop.
stack attack

principles

common stack

  • task runner: npm scripts
  • client bundler: browserify
  • utility functions: lodash
  • directory structure:
    • /app/
      • symlink /app to /node_modules/app
      • e.g.
        • /app/package.json
        • /app/client.js
        • /app/server.js
        • /app/thing/schema.js
        • /app/thing/service.js
        • /app/thing/client.js
        • /app/thing/routes.js
        • /app/thing/views/thing-list.js
        • /app/thing/views/thing-list.css
        • /app/thing/tests/views/thing-list.js
        • /app/list-view/index.js
      • always require top-down (require('things/schema')) instead of relative.
    • /config/{ NODE_ENV }.js
  • transport: WebSocket
  • classes: stampit

business stack

refs: 0, 1

mad science stack

scuttlebutt stack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment