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..
To build this project you will need to install:
Check out our latest version here : http://fitbittesterv2.herokuapp.com/
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.
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
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.
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
.
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.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.