Project-Glu
JavaScript Shell CSS
Latest commit 1481a0f Aug 18, 2014 @jasoncalabrese Update README.md
Permalink
Failed to load latest commit information.
app added magicBG mappings; make direction color same as bg; a little cle… Mar 19, 2014
lib removed pebble endpoint since it's now in nightscout May 5, 2014
server-config
test a little clean up of the auto generated tests Mar 9, 2014
.bowerrc a very basic app that exposes an api for the android cgm to post to Mar 9, 2014
.editorconfig a very basic app that exposes an api for the android cgm to post to Mar 9, 2014
.gitattributes
.gitignore inital Vagrantfile to setup an instance at digitalocean with node, mo… Apr 22, 2014
.jshintrc sometimes I don't want braces; _ is always there Mar 19, 2014
.travis.yml
Gruntfile.js a very basic app that exposes an api for the android cgm to post to Mar 9, 2014
README.md
Vagrantfile
bower.json better ui for night time Mar 16, 2014
karma-e2e.conf.js a very basic app that exposes an api for the android cgm to post to Mar 9, 2014
karma.conf.js a little clean up of the auto generated tests Mar 9, 2014
package.json use a hash of the timestamp, bg, and direction, to do on the fly dedu… Mar 26, 2014
post-test.sh use a hash of the timestamp, bg, and direction, to do on the fly dedu… Mar 26, 2014
server.js

README.md

Project-Glu

The goal's of Project-Glu was to use a small amount of glue to bring lots of existing things together to make managing my son's T1D easier and safer. Shortly after starting this I started working with several others on the Nightscout Project that combined several projects together.

Almost everything here consolidated with the community maintained Nightscout versions. As of this time the only thing that hasn't been migrated is my vagrant based auto deploy.

Old deploy steps, that will be migrted to a new Nightscout repo:

  1. clone repo git clone https://github.com/jasoncalabrese/project-glu.git; cd project-glu
  2. install vagrant
  3. setup a digital ocean account: use promo code '10TOSHIP' for 2 free months - link includes my referral code
  4. install https://github.com/smdahlen/vagrant-digitalocean
  5. configure dropbox: https://github.com/andreafabrizi/Dropbox-Uploader
  6. Set ENV VARS
    • use the Digital Ocean api page to find your values for: DO_CLIENT_ID, DO_API_KEY
    • DB_CONF="/Users/<YOU>/.dropbox_uploader" OR DB_CONF="/home/<YOU>/.dropbox_uploader"
  7. vagrant up --provider=digital_ocean and wait (I'm using a mac and have no idea if this would/could work from windows)
  8. done

Running the vagrant up command above should have:

  • launched an brand new server at digitalocean, called a droplet ($5/month)
  • installed node, mongo, git, nginx, etc
  • cloned all the required repos
  • ran the required setups: npm, bower, grunt, etc
  • downloaded a backup from your dropbox (if configured)
  • started everything
  • installed a cron script that runs nightly to backup data to dropbox

Once all of that is done and assuming there were no big errors you should be able to:

In links below replace YOUR_DROPLET_IP with the IP address of your droplet, this should be one of the last lines after running vagrant up or you can find it at digital ocean

-@jasoncalabrese