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 install
command - Run
npm run make
command. 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 containport
field which can be simple number of port, or path to socket file.
Application can be run in two mods:
- single:
npm start
ornode bin/single.js
- cluster
npm run cluster
ornode bin/cluster.js
- Rebuild bundles via enb tool:
npm run enb
orenb make --no-cache
- Regenerate stub data:
npm run stub
ornode 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]