Last change
on this file since 479 was
479,
checked in by hendrikvanantwerpen, 11 years ago
|
Changes for validation
- Split command line wrappers from processing logic.
- Created a JSON Schema for the database
- Allow off-line validation of database documents.
|
File size:
411 bytes
|
Rev | Line | |
---|
[479] | 1 | var env = require('../env'); |
---|
| 2 | var configCouch = require('../config/config-couchdb'); |
---|
[463] | 3 | |
---|
[479] | 4 | console.log("Running on",env.couchServerURL); |
---|
[464] | 5 | |
---|
[479] | 6 | configCouch(env.couchServerURL) |
---|
[464] | 7 | .then(function(){ |
---|
[479] | 8 | var app = require('../app').App({ |
---|
| 9 | couchDbURL: env.couchDbURL |
---|
[464] | 10 | }); |
---|
| 11 | |
---|
[479] | 12 | app.listen(env.port, function() { |
---|
| 13 | console.log('Listening on port',env.port); |
---|
[464] | 14 | }); |
---|
[475] | 15 | }, function(error){ |
---|
| 16 | console.error(error); |
---|
[463] | 17 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.