SCCapstone / FitbitTeam

A webapp using Fitbit API to help those struggling with congestive heart failure.
2 stars 0 forks source link

FitbitTeam

Our project is developing an Alexa skill with Fitbit scales to manage weight and minimize risks for those struggling with congestive heart failure. To do this, we are developing a webapp using HTML and CSS/TS scripting to work with the FitBit api in order to load data into a database which will then use Alexa to aid users in accessing this data such as but not limiting to: weight progression, medical reccomendations- factual and reccomended, prescription information, weight reminders, etc..

Technologies

To build this project you will need to install:

This app is Live

Check out our latest version here : http://fitbittesterv2.herokuapp.com/

To run this project locally

  1. mkdir FitbitTeam on your desktop
  2. git clone https://github.com/SCCapstone/FitbitTeam.git
  3. npm install
  4. npm install -g @angular/cli@1.0.0
  5. npm run build
  6. cd FitbitTeam
  7. ng serve

Development server

Once you've ran built the project correctly and have run the command 'ng serve' you will have a live development server to work on. You can find it by putting http://localhost:4200/ into your browser. The app will automatically reload if you change any of the source files.

Testing Account

If you don't want to make an account, here are a couple used for testing :\ (Client Account)\ Email : test@email.com\ Password : 123456\ (Admin Account)\ Email : admin@email.com\ Password : 123456

Fitbit Account

Only one fitbit account may be logged in per account. Also do not reuse the same fitbit account for multiple users. Please make your own accounts and manually enter data to test functionality. To test the functionality of FitBit data, you can login to a FitBit account here: https://accounts.fitbit.com/login

email: capstonefitbitteam@gmail.com

password: capstone490

Limitations: Fitbit API only allows servers to request Fitbit information from a user's account for the past 31 days.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Testing

For testing you must install cypress: -npm init -npm install cypress

Run cypress: -/node_modules/.bin/cypress open OR -npx cypress open

Run tests: -click test firsttest.spec.js Here is good for cypress if you need further help https://www.youtube.com/watch?v=VvLocgtCQnY There walkthrough is very detailed on the site here Youtube Tutorial here

Cypress online dashboard is setup and should be used to test before deployment. Keep testing components within the respective project directory. It would be helpful to record testings to show how a bug comes up, and post these as issues. This links with GitHub as well.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.