Deprecated: This repository has been deprecated together with https://github.com/fielded/nav-integrated-state-dashboard.
In your Angular module provide the url for the remote CouchDB database as dataModuleRemoteDB
.
Example:
.factory('dataModuleRemoteDB', function (config) {
return config.couchDB + config.integratedDataRemoteDB
})
Install with bower
:
bower install --save fielded/angular-nav-data
or npm
:
npm install --save fielded/angular-nav-data
Then simply add angularNavData
as a dependency somewhere in your project that makes sense and you're good to go.
# Clone the GitHub repository
git clone [email protected]:fielded/angular-nav-data.git
# Change into project folder
cd angular-nav-data
# Install the dev dependencies
npm install
The test suite is configured to run with PhantomJS and is powered by:
- Karma
- Jasmine
npm test
To run the integration tests:
- Enable CORS on your CouchDB
- If you have admin party enabled, run
npm t
(there is no step 3) - Run
COUCHDB_URL=http://[user:pass@]example.com npm t
To make a release, you need to run npm run build
, commit the dist
folder and tag the commit with an appropiate version according to the SemVer spec.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.