Skip to content
TC2013 edited this page Apr 19, 2014 · 32 revisions

## 1. Authentication: If your mongodb instance requires a user name and password edit the database_configuration.json and use a connection string like the following: "url": "mongodb://adminuser:[email protected]:port/dbname"

## 2. Need mongodb then type: npm install mongodb (even if you access mongodb remotely you will still need the commands locally)

## 3. Need socket.io then type: npm install socket.io (Due to things like repository issues you might need this manual install)

## 3. Getting an error about node-static then type: npm install node-static

## 4. Wondering about connecting your android device to your dexcom: Try a micro USB OTG to USB cable adapter

Other notes: If you don't get a bower directory under node_modules: Bower may not have installed if so then type "npm install bower" followed by "bower install"

/////////////////////////////////////////////////////////////////////////////////////////////////// A user's step-by-step guide for processes described above:

The following was done from a Windows 8 machine.

  1. Download zipped project from GitHub cgm-remote-monitor https://github.com/rnpenguin/cgm-remote-monitor/archive/master.zip

  2. Extracted the archive to a folder on your computer.

  3. Downloaded node.js and Git (use default installation for both). These programs are used to install node.js, mongoDB, socket.io, etc into the site on your local machine. These files are installed in the next step.

    a. node.js – http://nodejs.org/

    b. Git – http://git-scm.com/

  4. Using the program Git Bash that was just installed, navigate to the directory where you extracted the GitHub files.

  • a. To change directories in Git Bash, use the command “cd” without the quotes followed by the directory name. If there are spaces in the folder name you must use quotes around the name; e.g., cd “Program Files”

  • b. Next you need to install the node files and dependencies called for in the package.json. To do this, open Git Bash and type:

  • i. npm install

  • ii. bower install

  • c. If you get an error after typing “bower install” some users have reported have to type

  • i. Npm install bower or npm install -g bower (Now bower should install bower from Git Bash)

  • ii. Bower install

  1. Download and install WebMatrix -- http://www.microsoft.com/web/webmatrix/

  2. Open the folder with WebMatrix and modify the database_configuation.json to point to the stored CGM data.

  3. Using WebMatrix, publish it to your site. WebMatrix will make sure you have all necessary files and that the upload site can support the architecture. I published to Azure.

Clone this wiki locally