/Machete/ - A Sprout Social Template Server
A project started on Hack Day 1, this server will serve our Mustache-lang'd, Hogan-compiled templates to our PHP webserver via Node.js. In refreshless mode, it will serve it directly to our webapp.
Running the server
node server
To-Dos
In development
Write more tests.
Future
Write the response callbacks for refreshless environment
Configure
To use the prod
configuration set your node environment to production
:
export NODE_ENV=production
Otherwise, the live
configuration will be used.
Requirements
The server runs off of Node.js, along with a few modules.
http://nodejs.org/
Node.jsDownload and install Node.js. Instructions at http://nodejs.org/download/.
http://phantomjs.org/
PhantomJS Headless Webkit JavaScript APIFollow the instructions here: http://phantomjs.org/download.html
http://github.com/cowboy/grunt
grunt build process# npm install -g grunt-cli
https://github.com/trentm/node-bunyan
Bunyan Node.js Logger# npm install -g bunyan
http://twitter.github.com/hogan.js/
hoganjs compiler# npm install -g hogan.js
http://github.com/kriskowal/q
Q promise tool# npm install -g q