Heartstrong has a goal to find a way reduce CHF readmissions. It aims to come up with a solution to bridge the gap between patients at risk for heart failure readmission and the healthcare ecosystem that supports them. Healthcares currently lack patient/caregiver centered support, assurance that patient develops an accountable lifestyle after discharge, and focus on reducing patient anxiety and confusion.
Any text editor like Sublime, Brackets would work (if you use Sublime we recommend Babel - http://www.storybench.org/install-babel-packages-sublime-text-3/)
- Mac users need Xcode to run the emulator
- Windows users need Android studio
We used simulators in xcode and android studio but to run on a device, you need an IOS or android.
- IOS - https://facebook.github.io/react-native/docs/running-on-device.html (you might run into some errors - google the errors)
- Android – as long as you have your phone plugged into your computer when you run – react-native run-android – and you enable USB debugging it will run on your phone.
To Run (first time) Commands in italics should be run on your Terminal or any CLI.
Install dependencies first, by following directions on the link provided which depends on the platform you’re developing on https://facebook.github.io/react-native/docs/getting-started.html
npm install -g react-native-cli
After you have react-native set up, ‘cd’ into your home directory or wherever you want this project to be saved.
git clone https://github.com/wuTims/heart-strong.git
This will make a new directory called heart-strong
cd heart-strong
npm install
npm start
Run
react-native run-android
Or
react-native run-ios
- Android studio emulator must be running or build will fail
- IOS will automatically open xcode simulator
Run
react-native run-android
Or
react-native run-ios
This launches your project on the platform's emulator/simulator
When the emulator/simulator is launched, you can refresh it after making changes to the code by:
- Windows: ctrl+m and ‘reload’
- IOS: cmd+r
If a new library was added, run:
npm install react-native-new-package --save
You need to restart your packager (for windows) or restart your simulator (for mac - not just reload).
When you push to master and teammates pull, they would also need to run
npm install react-native-new-package
or they will have an error saying module was not found.
Add ART.xcodeproj to your project and link with libART.a - Error may occur when you're missing an ART xcode file that's necessary to render the art components in the application.
Instructions to resolve that issue can be found here
Open project folder in your text editor. All component JavaScript files are under the folder app. Edit if you change something in index.android.js don’t forget to edit index.ios.js (and vice versa) to have it also run on the other platform.
Contact any one of us for administrator/editor privileges for the Firebase platform.
- Go to: firebase.google.com
- Click on Go to Console on the top right of the screen
- After you’ve received privileges to access our project you should see the project name “HeartStrong”
- Click on the Project to access the backend features
- Authentication includes all the user accounts that have signed up through our application
- Database holds the schema and path of all relatable data used in our application
- Useful documentation on how to use Firebase's APIs: (https://firebase.google.com/docs/database/)
- To give other developers permission to your Firebase project, go under Settings → Project Settings
- Under IAM click on the +Add button on the top
- To add members provide their email as well as a role for them. (Typically editor if you want to give them read/write permissions)
- Benny Ho (bimpulseho@gmail.com)
- Ria Pan (panjfang@gmail.com)
- Grace Wu (puppypal438@gmail.com)
- Tim Wu (tim.wulin@gmail.com)