Data source provider for Reshet News
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Please keep in mind that in order to run this project you will need Applicaster NPM TOKEN
in your env variables.
- Clone this repo;
- Navigate to the project folder;
- Run
npm install
;
We're using https://github.com/avajs/ava as our test runner.
Tests should be placed in the test
folder which is following project folder structure.
Provider is an npm package which is part of our applicaster private npm account
- Change version number inside
package.json
(or usenpm version patch/minor/major
) - Build bundle:
npm run build
; - Publish bundle to npm
npm publish
.
- Install zappifest if you don't have it yet. [https://github.com/applicaster/zappifest](Instllation instructions)
- Update npm package version number inside
plugin-manifest.json
file.dependency_version: x.x.xx
- run
zappifest publish --plugin-id <plugin ID> --manifest plugin-manifest.json --access-token <yourAccessToken>
Bundeling the data source provider to your app is done through the feed section in the ui builder. For more information please refer to http://developer-zapp.applicaster.com/Zapp-Pipes/7.-Connect-to-Zapp.html
- run
npm start
- open your browser at
http://localhost:8080/reshetnewsds/fetchData?type=[type]¶m1=[param1]...¶mN=[paramN]
Parameter | Description | Type | Example |
---|---|---|---|
id | collection index | String | id=0 |
Url example: reshetnewsds://fetchData?type=home&id=0
Parameter | Description | Type | Example |
---|---|---|---|
id | collection index | String | id=0 |
Url example: reshetnewsds://fetchData?type=vod&id=0
Parameter | Description | Type | Example |
---|---|---|---|
id | collection index | String | id=0 |
Url example: reshetnewsds://fetchData?type=live&id=0
Parameter | Description | Type | Example |
---|---|---|---|
id | channel id | String | id=0 |
Url example: reshetnewsds://fetchData?type=channel&id=12947