Database
By default NotifyBC uses in-memory database backed up by folder /server/database/ for local and docker deployment and MongoDB for Kubernetes deployment. To use 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.