Database
By default NotifyBC uses mongodb-memory-server backed up by folder server/database/ for local and docker deployment and a separate MongoDB for Kubernetes deployment. To use a separate MongoDB for non-Kubernetes deployment, add file src/datasources/db.datasource.(local|<env>).(json|js|ts) with MongoDB connection information such as following:
module.exports = {
uri: 'mongodb://127.0.0.1:27017/notifyBC?replicaSet=rs0',
user: process.env.MONGODB_USER,
pass: process.env.MONGODB_PASSWORD,
};
See Mongoose connection options for more configurable properties.