Skip to content

Latest commit

 

History

History
66 lines (37 loc) · 2.18 KB

README.md

File metadata and controls

66 lines (37 loc) · 2.18 KB

MongoDB driver for Sapling

GitHub Workflow Status Codecov Version License

This package allows using the MongoDB database engine with Sapling.

Installation

Via the CLI (recommended)

This package can be installed via the Sapling CLI via the project creation questionnaire;

sapling create

Or added to an existing project by re-running the questionnaire;

sapling edit

Manually

Alternatively, if you prefer to install it manually, you can install it via npm;

npm install --save @sapling/db-driver-mongodb

Then, modify your config.json to select the MongoDB driver;

{
    "db": {
        "driver": "MongoDB"
    }
}

Usage

Once installed, Sapling will use MongoDB running on localhost on port 27017 to persist all data.

You can provide alternative host and port via config if you prefer;

{
    "db": {
        "driver": "MongoDB",
        "host": "example.com",
        "port": 27018
    }
}

Questions & Issues

Bug reports, feature requests and support queries can be filed as issues on GitHub. Please use the templates provided and fill in all the requested details.

Changelog

Detailed changes for each release are documented in the release notes.

License

MIT