Equivalence of Rails console for Node.js
Create your own REPL by making a js file (ie: console.js) with the following lines/components: Require node’s built-in repl: var repl = require(“repl”); Load in all your key variables like db, any libraries you swear by, etc. Load the repl by using var replServer = repl.start({}); Attach the repl to your key variables with replServer.context.<your_variable_names_here> … Read more