Coding Interview
JavaScript Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
_db-fixtures
_design
controllers
lib
models
public
templates
views
.gitignore
Makefile
Procfile
README.md
app.js
config.js
dev.env
package.json
routes.js
stage.env

README.md

Coding Interview tasks

Working heroku revision

Getting started

Install required JS modules:

$ make setup

Install MongoDB. Here is how to do it with Homebrew:

$ brew install mongodb

Running dev server

Init MongoDB data:

$ cd _db-fixtures/ && sh init_db.sh

Run application:

$ make runserver

Deploying to Heroku

While development version is optimized for ease of development (client-side compiled less stylesheets, html pages generated on-fly by the server from templates/jade folder), production version is optimized for performance and thus should be compiled before deployment. Compilation will convert jade templates under templates/jade templates to static html files in views folder. It will also convert client-side templates in templates/dust into JavaScript files under public/js/dust.

Compile static resources:

$ make compile

HowTos

Generate README.html

$ brew install markdown
$ markdown < README.md > README.html