GithubHelp home page GithubHelp logo

ip-spiro-cloud's Introduction

##International Project Cloud Infrastructure

###Phase 1: Clone repo and provision Vagrant

In an empty directory of your choosing, do the following:

git clone https://github.com/detuur/ip-spiro-cloud
cd ip-spiro-cloud
vagrant up

The machine will proceed to completely set up itself. There's one moment where manual intervention is necessary. Keep an eye on the terminal. A cow will tell you when it's time to click a few buttons to advance the process.

###Phase 2: Light manual setup

Once the cow tells you it's time, go to http://localhost:8091 on the dev machine and start the couchbase setup by clicking the button.

#####Step 1: Change the "Data RAM Quota" field from 1200 to 1000 MB. Leave the rest default.

#####Step2: Press next.

#####Step 3: Uncheck "Enable" under "Replicas"

#####Step 4: Disable software notifications. Agree to terms.

#####Step 5: Username: Administrator

Password: spirometer

###Phase 3: Populating the database

You are now ready to populate the database. This is also automated. On the dev machine, inside the git repo, do the following:

./start-phase-3.sh

As soon as this is done, the box is completely set up.

###Phase 4: Using it

Go to http://localhost/Statistics.html in order to see the result. There are two functions that work: ####Group stats Under the tab Filter

  • Select the filters you want to activate
  • e.g.: males between 12 and 24 years old
  • Select single stat (whether you pick FEV or FVC doesn't matter, you're getting both)
  • Click search
  • You'll get the average results for that group on the bottom (scroll down more)

####FEV/FVC chart Under the top Detail tab, enter any of these data IDs to chart the breathing cycle for that measurement.

  • data-NHANES3-00047-19900604T084910
  • data-NHANES3-00014-19901102T175600
  • data-NHANES3-00019-19900606T143800
  • data-NHANES3-00019-19900606T144100
  • data-NHANES3-00039-19900505T180600

The full list of data can be found in the database control panel. Data entries start with the "data-" prefix.

###Full code contents

Data is spread over multiple repos.

This repo contains the VM configuration and data import utility.

Spiro-server contains the actual website code (test.js is the live code).

Spirometer-website contains the statical front-end files.

ip-spiro-cloud's People

Contributors

detuur avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.