This repository contains implementation code for the Provider Directory project.
Documentation corresponding to the dev
branch of this repository can be found here.
- git clone [email protected]:medicity/provider-directory-api.git
- cd provider-directory-api
- npm install
- npm run start
- visit http://localhost:3000 in browser
-
add a file to the
config
folder namedlocal.js
containing the code below:module.exports = { mongo: { host: 'localhost' } }
This will insure that you run tests against your local mongo instance and avoid concurrency issues with the centralized build
- run one of the following npm commands
npm test
(run all tests)npm run ava
(run unit tests)npm run cuke
(run all cucumber tests)npm run cuke-debug
(run all cucumber tests with debug output)npm run cuke-feature {path to feature}
(run tests for a specific cucumber feature)
> e.g. `npm run cuke-feature test/features/zips.feature`
npm run cuke-feature-debug {path to feature}
(run tests for a specific cucumber feature with debug output)
> e.g. `npm run cuke-feature-debug test/features/zips.feature`
npm run cuke -- --name='{scenario name regex}'
(run a specific scenario)
> e.g. `npm run cuke -- --name='create a client'`
npm run cuke-debug -- --name='{scenario name regex}'
(run a specific scenario with debug output)
> e.g. `npm run cuke-debug -- --name='create a client'`