feedhenry-templates / appforms-datasources-static

A Sample Service using hard coded data for a datasoruce

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feedhenry Sample Service Using Hard Coded Data for Datasources

Dependency Status

This is a sample RESTful service to load a list of months that is properly formatted as a Data Source.

The endpoint can be found at /static_ds/months

An example of the Data Sources format is below:

You can also choose which item is to be selected by default by setting the "selected" property to true or false.

[
    {
        "key": "some_key",
        "value": "some_value",
        "selected": false
    },
    {
        "key": "other_key",
        "value": "other_key",
        "selected": true
    }
]

Build

npm install

Test

All the tests are in the "test/" directory. The cloud app is using mocha as the test runner.

To run:

mongod
npm test
  • coverage report for unit tests:
npm run coverage

About

A Sample Service using hard coded data for a datasoruce

License:Other


Languages

Language:HTML 85.3%Language:JavaScript 14.3%Language:CSS 0.4%