Scripted' application to run JS files once.
Inspired Rails migrations, Scripted was created to run JS scripts only once, based on scripts already saved in the collection scripts in MongoDB.
Example: 1433298714535-for.js
$ scripted -c for
$ scripts/1433298714535-for.js created
$ npm install -g task-scripted
You must configure MongoDB, it can be done using mongoose.json or environment variable MONGO_SCRIPTED.
$ scripted -m
{
"url" : "mongodb://localhost:27017/scripted"
}
In your .bash_profile or similar
export MONGO_SCRIPTED=mongodb://localhost:27017/scripted
Usage: scripted [options]
Options:
-h, --help output usage information
-V, --version output the version number
-c, --create Create script
-e, --execute Execute scripts
-m, --mongoose Create mongoose.json (optional)
-s, --scripted Create scripted-template.js (optional)