POC for configurable web forms that work offline.
-
Install CouchDB
-
node setup:
npm install -g gulp karma-cli add-cors-to-couchdb npm install
-
add-cors-to-couchdb
-
In couchdb utils (http://127.0.0.1:5984/_utils/), setup admin account
-
gulp
for dev -
npm test
for tests
-
Create a json file in the root dir of your project: couchdb_credentials.js containing:
module.exports = { prod: { admin: { username: 'kevin', password: 'pass', }, user: { username: 'kdoran', password: 'pass', }, url: 'http://localhost:5984/', }, local: { admin: { username: 'kevin', password: 'pass', }, user: { username: 'kdoran', password: 'pass', }, url: 'http://localhost:5984/', } };
-
gulp deploy
Run only unit tests:
npm test unit-karma.conf.js
Run only integration tests:
npm test integration-karma.conf.js
Run all tests:
npm test