Skip to content

Commit

Permalink
Moving lib -> server and stasis -> client, README and project cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
winton committed Apr 2, 2012
1 parent b0c92d6 commit b948144
Show file tree
Hide file tree
Showing 75 changed files with 27 additions and 12 deletions.
1 change: 0 additions & 1 deletion Cakefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ task 'new', 'create a new project', (options) ->
"git merge template/master"
"cake install"
"echo \"\n\\033[1;32mSuccess!\\033[0m\n\""
'echo "\\033[1;33mAdd to ~/.profile:\\033[0m export PATH=\\"./node_modules/.bin:\\$PATH\\""'
"echo \"\\033[1;33mStart your server:\\033[0m cd ../#{name} && cake start\n\""
].join(' && ')
replaceProcess(cmd)
Expand Down
4 changes: 2 additions & 2 deletions Procfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
web: supervisor -e js|coffee -w lib,node_modules lib/app.js
stasis: bin/stasis.sh
client: bin/client.sh
server: bin/server.sh
27 changes: 20 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,22 @@ Node.js web app template.

##The stack

Server (Node.js):
[Node.js](http://nodejs.org/) server side:

* [CoffeeScript](http://coffeescript.org)
* [Express](http://expressjs.com)
* [Mocha](http://visionmedia.github.com/mocha)
* [Sinon](http://sinonjs.org)
* [Underscore](http://documentcloud.github.com/underscore)

Markup (Ruby):
[Stasis](http://stasis.me) statically generates the client side:

* [Stasis](http://stasis.me)
* [CoffeeScript](http://coffeescript.org)
* [HAML](http://haml-lang.com)
* [LESS](http://lesscss.org)
* [Bootstrap](http://twitter.github.com/bootstrap)
* [Haml](http://haml-lang.com/), [Sass](http://sass-lang.com), [CoffeeScript](http://coffeescript.org), and [lots of other languages](http://stasis.me/#more)
* [jQuery](http://jquery.com)
* [Modernizr](http://modernizr.com/)
* [SmartAsset](https://github.com/winton/smart_asset)
* [Underscore](http://documentcloud.github.com/underscore)

Process management:

Expand Down Expand Up @@ -49,4 +50,16 @@ Run `cake` in your project to see more cake tasks.
* [backbone-everyauth](https://github.com/winton/node_template/tree/backbone-everyauth)
* [backbone-redis](https://github.com/winton/node_template/tree/backbone-redis)

Check each branch's README for installation instructions.
Check each branch's README for installation instructions.

## Contribute

[Create an issue] to discuss template changes.

Pull requests are much appreciated.

## Follow

[Watch this project](https://github.com/winton/node_template#) on Github.

[Follow Winton Welsh](http://twitter.com/intent/user?screen_name=wintonius) on Twitter.
2 changes: 1 addition & 1 deletion bin/stasis.sh → bin/client.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

cd stasis
cd client
stasis -p ../public -d
2 changes: 1 addition & 1 deletion bin/production.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
export NODE_PATH=/usr/lib/node_modules
export NODE_ENV=production

PORT=$1 /usr/bin/node /path/to/lib/app.js >> /path/to/log/production.$1.log 2>&1
PORT=$1 /usr/bin/node /path/to/server/app.js >> /path/to/log/production.$1.log 2>&1
3 changes: 3 additions & 0 deletions bin/server.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

./node_modules/.bin/supervisor -e js|coffee -w lib,node_modules server/app.js
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit b948144

Please sign in to comment.