Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
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.
JavaScript
branch: master
Failed to load latest commit information.
config updates to port
db we now log all the errors
src too much of the logging; especially for cache values, we dont really …
views links to feeds
.gitignore starting point
.nodester.appconfig adding nodesters app config
Procfile
README adding changes for dotcloud
app.js small udpate
dotcloud.yml files for dotcloud
package.json updates for jitsu
supervisord.conf files for dotcloud

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.