Skip to content

A00107408/Healthcare-Monitoring-Web-Service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Student: A00107408.
Date: 2016-2017.
Project: Msc Project.
Title: A Restfull WebService using Play Framework 2.5.
=================================================================================================

Description:
------------

 This SBT project uses PlayEbeans to facilitate the creation of user accounts. The users data
 is then taken from my FitBit account from the FitBit Api. This is written to MongoDB collections
 and is read from there in turn and displayed using HighCharts.
 Javascript code determines if this data falls within pre-set parameters. If not, the accompanying
 Android app texts the I.C.E of potential problems.


Requirements:
-------------

MongoDB         - For user's data ie; Heart Rate and Datetime.
MySQL RDBMS     - For user accounts.
Android App     - Create user account and login. Sends warning text when 50 > HR < 160 BPM.

See 'build.sbt' and 'project/plugins' for further details on project dependencies & plugins used.

Change DB URLs in 'application.conf' to run on your own system with you database configurations.
ie; MongoDB database name in this instance is MscProject.
ie; MySQL database name in this instance is  mscproject.
MongoDB running as service. Post number not important.
Change root user and password to suit your own configuration.

You will need a FitBit account with an app which grants access to this web service to access your
health data. Use your FitBit token to access your FitBit data. Change this token information in
the javascript files in this project to fetch your data from your own app,
ie; 'public/javascripts/fetchHR.js' where 'token&client_id' = you own token.


Built Using:
------------

Play Framework 2.5
Scala SBT 'build.sbt' project.
Reactive Mongo driver. Asynchronous Non Blocking MongoDB I/O.
MySQL


'application.conf' ignored by GitHub:
-------------------------------------

mongodb.uri = "mongodb://localhost/MscProject"

play.modules.enabled += "play.modules.reactivemongo.ReactiveMongoModule"

mongo-async-driver {
  akka {
    loglevel = WARNING
  }
}

db {
  default.url = "jdbc:mysql://localhost/mscproject?autoReconnect=true&useSSL=false"
  default.driver = com.mysql.jdbc.Driver
  default.username = root
  default.password = "yourPassword"
}

ebean.default="models.*"