Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/holyjak/clj_analytics_mongodiffer
An experiment with Clojure and Mongo
https://github.com/holyjak/clj_analytics_mongodiffer
Last synced: 26 days ago
JSON representation
An experiment with Clojure and Mongo
- Host: GitHub
- URL: https://github.com/holyjak/clj_analytics_mongodiffer
- Owner: holyjak
- License: epl-1.0
- Created: 2014-03-03T22:11:20.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-03-03T22:14:33.000Z (almost 11 years ago)
- Last Synced: 2024-10-15T17:52:09.860Z (2 months ago)
- Size: 246 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# clj-analytics-mongodiffer
Webapp that for comparing daily data in a prod and staging Mongo databases,
showing what collections are missing or have different data for the given day
in the two environments.
It is assumed that each collection has one document per one `epoch_day`.The code has been extracted from a data analytics project and is currently not
generally usable (relying on details such as 1 doc per day, the epoch day field,
collection names ending in `.day` etc.) I share it so that I can discuss it.## Usage
### Requirements
[Leiningen](http://leiningen.org/) - f.ex. downloaded it to the working dir.
### Running
Start:
./lein ring server-headless # via nohup or in screen to keep it running
Browse to [locahost:3000](http://locahost:3000/) and follow the instructions.
Observe the console for logs.### REPL
To start it from the REPL, load `server.clj` and execute `(create-server)` to start it
at port `8081` and `(destroy-server)` to stop it.## License
Copyright © 2013 Jakub Holy
Distributed under the Eclipse Public License, the same as Clojure.