Created
November 11, 2021 00:04
-
-
Save jnormore/563e35f19508750719354fa7e680b235 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let repl = require('repl'); | |
let models = require('./db/models'); | |
Object.keys(models).forEach((modelName) => { | |
global[modelName] = models[modelName]; | |
}); | |
let replServer = repl.start({ | |
prompt: 'app > ', | |
}); | |
replServer.context.db = models; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment