Permalink
Browse files

Added support to create the models dynamically

Basic structure to generate models on the fly and assign it to the
express routes. Added "Hello World" example.
  • Loading branch information...
1 parent ffdd4cd commit 37cb0707e5449919ebccd570257fdbd25dd16460 @prathamesh7pute committed Oct 7, 2012
View
@@ -0,0 +1,63 @@
+{
+ "bitwise" : true,
+ "curly" : true,
+ "eqeqeq" : true,
+ "forin" : true,
+ "immed" : true,
+ "latedef" : true,
+ "newcap" : true,
+ "noarg" : true,
+ "noempty" : true,
+ "nonew" : true,
+ "plusplus" : true,
+ "regexp" : true,
+ "undef" : false,
+ "strict" : false,
+ "trailing" : true,
+ "asi" : false,
+ "boss" : false,
+ "debug" : false,
+ "eqnull" : false,
+ "es5" : false,
+ "esnext" : false,
+ "evil" : false,
+ "expr" : false,
+ "funcscope" : false,
+ "globalstrict" : false,
+ "iterator" : false,
+ "lastsemic" : false,
+ "laxbreak" : false,
+ "laxcomma" : false,
+ "loopfunc" : false,
+ "multistr" : false,
+ "onecase" : false,
+ "proto" : false,
+ "regexdash" : false,
+ "scripturl" : false,
+ "smarttabs" : false,
+ "shadow" : false,
+ "sub" : false,
+ "supernew" : false,
+ "validthis" : false,
+ "browser" : false,
+ "couch" : false,
+ "devel" : false,
+ "dojo" : false,
+ "jquery" : false,
+ "mootools" : false,
+ "node" : false,
+ "nonstandard" : false,
+ "prototypejs" : false,
+ "rhino" : false,
+ "wsh" : false,
+ "nomen" : false,
+ "onevar" : false,
+ "passfail" : false,
+ "white" : false,
+ "maxerr" : 100,
+ "predef" : [
+ "it",
+ "describe"
+ ],
+ "indent" : 4
+}
View
@@ -1,11 +1,16 @@
TESTS = test/*.js
REPORTER = dot
+build: jshint test
+
+jshint:
+ jshint lib/ test/ examples/ --config .jshintrc
+
test:
@./node_modules/.bin/mocha \
--require should \
--reporter $(REPORTER) \
--growl \
$(TESTS)
-.PHONY: test bench
+.PHONY: build bench
View
@@ -0,0 +1,12 @@
+var Coral = require('../lib/coral'),
+ application;
+
+application = {
+ root: __dirname,
+ corals: [{
+ name: "",
+ model: {}
+ }]
+};
+
+return new Coral(application);
View
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.

0 comments on commit 37cb070

Please sign in to comment.