this repository illustrates use of the the following packages to construct node based batch and rest-ful api elements backed by mongodb:
- git clone {this repo}
- cd {this repo}
- yarn
- yarn start
- visit http://localhost:3000 in browser
to run local mongo, easiest is via docker:
docker rm -f mongo
docker run -d --name mongo -v $HOME/mongo:/data/db -p 27017:27017 mongo:<version>
see config
see data setup
see security
see batch
yarn build
- run one of the following yarn commands
yarn test
(run all tests)yarn ava
(run all unit tests)yarn ava-one {path to test}
(run specific unit test)yarn cuke
(run all cucumber tests)yarn cuke-feature {path to feature}
(run tests for a specific cucumber feature)e.g.
yarn cuke-feature test/features/widgets.feature
yarn cuke -- --name='{scenario name regex}'
(run a specific scenario)e.g.
yarn cuke --name='create a client'