Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dwinston/cubmongo
Use Cubism.js for time-series visualization of updates to multiple MongoDB collections
https://github.com/dwinston/cubmongo
Last synced: about 1 month ago
JSON representation
Use Cubism.js for time-series visualization of updates to multiple MongoDB collections
- Host: GitHub
- URL: https://github.com/dwinston/cubmongo
- Owner: dwinston
- Created: 2018-06-21T21:06:51.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-06-22T18:40:02.000Z (over 6 years ago)
- Last Synced: 2024-11-29T11:14:02.927Z (about 1 month ago)
- Language: JavaScript
- Size: 280 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cubmongo
Use Cubism.js for time-series visualization of updates to
multiple MongoDB collections.### development
To run:
```
pip install -r requirements.txt
python cubmongo.py # starts Flask debug server
```The current code connects to a set of hard-coded databases via
`mongogrant`. Eventually db config will be refactored to a config file.
For now, this repo is primarily used internally by
the [Materials Project](https://materialsproject.org) to produce a
dashboard to monitor its database build pipeline.To (re)install structure viewer javascript:
```
npm install
npm install -g npx
npx webpack
cp dist/main.js static/structureViewerBuilt.js
python cubmongo.py
```### deployment
This is a Flask app. Example multi-worker deployment of WSGI app e.g. behind a
reverse proxy:
```
gunicorn -w 4 -b 0.0.0.0:8000 cubmongo:app
```