Data provider web service
- At first you should clone this repository to your local filesystem:
$ git clone https://github.com/bem-site/provider.git
- Install npm dependencies via
npm installcommand - Run
npm run makecommand. It needs for:- Install bower dependencies
- Create bundle
- Generation of configuration file
- Generation of stub data
All application configuration is in configs/config.json file.
title- application title.path- full path to operation folder. (required)modelPath- path to folder which model.json file will be saved to.symlinks- array with available symlink names (required).logger- settings for logger module. See Logger for more details.logs- object for log paths in cluster application mode.cluster- cluster settings. This object should contain fieldworkers- the number of server processes in cluster.server- server setting section. Should containportfield which can be simple number of port, or path to socket file.
Application can be run in two mods:
- single:
npm startornode bin/single.js - cluster
npm run clusterornode bin/cluster.js
- Rebuild bundles via enb tool:
npm run enborenb make --no-cache - Regenerate stub data:
npm run stubornode bin/stub.js - Regenerate configuration file:
npm run config
Run tests:
npm run mocha
Run tests with istanbul coverage calculation:
npm run istanbul
Run codestyle verification (jshint and jscs)
npm run codestyle
Special thanks to:
- Nikolay Ilchenko (http://github.com/tavriaforever)
- Konstantinova Gela (http://github.com/gela-d)
Maintainer @tormozz48 Please send your questions and proposals to: [email protected]