https://github.com/redbox-mint/sails-hook-redbox-storage-mongo
ReDBox Storage plugin that stores metadata to a Mongo Database
https://github.com/redbox-mint/sails-hook-redbox-storage-mongo
metadata-store
Last synced: 6 months ago
JSON representation
ReDBox Storage plugin that stores metadata to a Mongo Database
- Host: GitHub
- URL: https://github.com/redbox-mint/sails-hook-redbox-storage-mongo
- Owner: redbox-mint
- Created: 2020-08-24T01:06:47.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-13T01:32:32.000Z (over 2 years ago)
- Last Synced: 2024-04-26T22:03:31.997Z (about 2 years ago)
- Topics: metadata-store
- Language: TypeScript
- Homepage: http://www.redboxresearchdata.com.au
- Size: 447 KB
- Stars: 0
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Support: support/test/docker-compose.yml
Awesome Lists containing this project
README
# ReDBox MongoDB Storage Plugin
This project enables storage of ReDBox data (DMPs, Data Records, etc.) in MongoDB.
## Configuration
### MongoDB
- The plugin will use the DB specified by the ['datastore'](https://sailsjs.com/documentation/concepts/models-and-orm/model-settings#?datastore) configured within the [API model definition](https://github.com/redbox-mint/sails-hook-redbox-storage-mongo/blob/master/api/models/Record.js). By default, this is ['redboxStorage'](https://github.com/redbox-mint/redbox-portal/blob/backend-refactor/config/datastores.js#L17).
- Datastores are configured at the SailsJS level, see [Waterline reference](https://sailsjs.com/documentation/reference/waterline-orm/datastores) and [SailsJS datastores configuration](https://sailsjs.com/documentation/reference/configuration/sails-config-datastores). Specifically, the datastore uses the [sails-mongo adapter](https://github.com/balderdashy/sails-mongo#compatibility), which allows for advanced connection options, including [specifying SSL files, etc.](https://mongodb.github.io/node-mongodb-native/3.5/api/MongoClient.html#.connect)