Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Sample CRUD application with Node.JS, using MySQL, Mongo and Redis. Basically, I am using it as a boilerplate (template, skeleton) for all new backend apps I start.

branch: master
README
Install Node.JS (http://nodejs.org/#download), NPM (http://npmjs.org/) and Foreman (http://ddollar.github.com/foreman/).

Symlinks a package folder into your system, so that changes are automatically reflected, and install the "dependencies" and "devDependencies" from package.json:
$ npm link .

Run:
$ foreman start

or as simple as:
$ node src/server.js

List of all modules/libraries in use is in package.json or below:
https://github.com/LearnBoost/mongoose
https://github.com/felixge/node-mysql
https://github.com/mranney/node_redis
https://github.com/visionmedia/express
https://github.com/visionmedia/ejs
https://github.com/caolan/async
https://github.com/lorenwest/node-config
https://github.com/LearnBoost/cluster
https://github.com/flatiron/winston
https://github.com/broofa/node-uuid
https://github.com/felixge/node-dateformat
https://github.com/visionmedia/expresso
https://github.com/dannycoates/node-inspector
https://github.com/mhevery/jasmine-node

For simplicity sake I'll describe the process of getting it on Heroku:
https://devcenter.heroku.com/articles/nodejs

$ heroku create crud-bones-dev --stack cedar --remote heroku-dev
$ git push heroku-dev master
$ heroku config:add NODE_ENV=staging --app crud-bones-dev

Or if you want to push to existing Heroku instance:

$ git init 
$ git add .
$ git commit -m 'bundle for heroku-dev deploy'
$ git remote add heroku-dev git@heroku.com:crud-bones-dev.git
$ heroku config:add NODE_ENV=staging --app crud-bones-dev
$ git push -f heroku-dev master

* dotCloud:

$ dot create crudbonesdev
$ dot push crudbonesdev .

Unfortunately at this moment it doesn't seem to be supporting newer Node.JS

* Engine Yard 

N/A (in progress :-)
Something went wrong with that request. Please try again.