master
import NeDB from 'nedb'; import path from 'path'; export default function (app) { const dbPath = app.get('nedb'); const Model = new NeDB({ filename: path.join(dbPath, `todos${app.get('port')}.db`), autoload: true }); return Model; };