Skip to content

wuTims/heart-strong

Repository files navigation

HeartStrong

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.

Table of Contents

  1. Software
  2. Hardware
  3. Getting Started
  4. Backend using Firebase
  5. Contact Us

1. Software

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/)

2. Hardware

We used simulators in xcode and android studio but to run on a device, you need an IOS or android.

3. Getting Started

To Run (first time) Commands in italics should be run on your Terminal or any CLI.

Installing React Native on your System:

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

After set-up:

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

Importing Libraries and Packages:

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.

Error Handling:

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

Editing the project:

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.

4. Backend using Firebase

Contact any one of us for administrator/editor privileges for the Firebase platform.

  1. Go to: firebase.google.com
  2. Click on Go to Console on the top right of the screen
  3. After you’ve received privileges to access our project you should see the project name “HeartStrong”
  4. Click on the Project to access the backend features
  5. Authentication includes all the user accounts that have signed up through our application
  6. Database holds the schema and path of all relatable data used in our application
  7. Useful documentation on how to use Firebase's APIs: (https://firebase.google.com/docs/database/)

Giving other developers permissions

  1. To give other developers permission to your Firebase project, go under Settings → Project Settings
  2. Under IAM click on the +Add button on the top
  3. To add members provide their email as well as a role for them. (Typically editor if you want to give them read/write permissions)

5. Contact Us

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •