An experiment to see what a simple node app would look like with "Components" from the @visionmedia blog
JavaScript Perl
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib added view integration tests, updated other tests Aug 9, 2012
public/shared
scripts
test added view integration tests, updated other tests Aug 9, 2012
.gitignore First attempt at a component-based express app ala TJ Aug 6, 2012
Makefile
Readme.md
app.js
package.json

Readme.md

Express App - Components

A simple app with sign-in and dashboard views.

Concepts

  • Everything is a component (components live in lib)
  • Pyramid testing (view integrations live in test, model and controller tests live in lib/{component}/test)
  • Makefile as entry point (everything starts with make)
  • Separate code and config (config is injected into main()) ...and other 12-factor guidelines

Try it

$ git clone git://github.com/Skookum/component-test.git
$ cd component-test
$ make setup
$ make test
$ make open

Inspired by