@salestrip/mongodb
![Codefresh build status](https://g.codefresh.io/api/badges/pipeline/salestrip/salestrip%2Fmongodb%2Fmongodb?branch=master&key=eyJhbGciOiJIUzI1NiJ9.NWIxOGIyMWNlMjZmNGMwMDAxZTE5MDY1.oEsGHB32WQHF0m7CSbmuJY3eUH5HAx0sxVI6TBF3gsk&type=cf-1)
SalesTrip Engine MongoDB adapter.
Install
npm i -S bluebird mongodb ramda @salestrip/mongodb
Notes
- Check peer-dependencies for other peers a client may need to install.
- Format of DB_URL env var is
mongodb://localhost:27017/ste|mongodb://localhost:27017/test?retryWrites=true
. - Will export two instances named
steDb
and testDb
.
Release
To release a new version, use npm. Using npm version
will update the version in package.json
before committing the resulting file change to git and adding the appropriate git tag. Pushing a tagged version to origin
will trigger a CI deployment to the npm registry.
To release a bugfix update the patch version.
npm version patch
git push
git push --tags
To release a feature update the minor version.
npm version minor
git push
git push --tags
To release a breaking change update the major version.
npm version major
git push
git push --tags
License
Copyright © 2019 SalesTrip Limited. All rights reserved.