Record & replay changes to a MongoDB
This utility makes Windows and Linux scripts to reproduce manual actions done on a Mongo DB (or actions that are result of some script / acceptance test).
It makes internally a simple diff (only new items are being detected, updates are ignored currently).
As a result, one should get
JSON files that altogether work to reproduce actions when it's needed.
To see what options are available, please run application with
How do generated scripts know on which server they need to execute insertions?
They don't, you should either:
- give the server as script parameter; or
- set the env variable
MONGO_SERVERto some IP/host name before you run the shell/batch file.
clean.bat localhost setup.bat 192.168.1.101:27117 MONGO_SERVER=127.0.0.1 setup.sh
Weekly Scrum Demos. This tool makes it a breeze for most cases which might otherwise take too much preparation.
(For developers) Building, tagging and artifact deployment
#golang project. I used Go 1.6.
go get github.com/milanaleksic/mongodiff should be enough to get the code and build.
To build project you can execute (this will get from internet all 3rd party utilites needed for deployment: upx, go-upx, github-release):
You can start building project using
deploy to Github (if you have privileges to do that of course).