Skip to content

zoanthal/pedi-crisis

 
 

Repository files navigation

Pedi Crisis 2.0 Logo

Pedi Crisis 2.0

This app contains peer-reviewed algorithms for treating 26 pediatric crisis situations. As an interactive version of the SPA critical event checklists, crucial details for these 26 pediatric critical events are now just a 'tap' away on your pocket device!

You can download the latest version of this app in the iOS App Store or Google Play Store.

Getting Started

  1. Install Git, Node and NPM. These versions should work well:
    • node --version v8.9 (or greater)
    • npm --version 4.6 (or greater, but NPM v5 is sketchy, so consider a downgrade via npm install -g npm@4).
    • git --version 2.14 (or greater)
  2. Install PhoneGap
    • npm install -g phonegap (you may need to use sudo in linux/mac)
    • phonegap --version 9.0.0 (or greater)
  3. Fork and Clone this repo
  4. Restore packages
    • Windows: consider disabling symlinks for compiled node packages, via npm install --no-bin-links.
    • In the root project folder (which contains the file package.json): npm update
  5. Start debugging
    • phonegap serve should output something like listening on 192.168.1.1:3000
      • Debug in a browser by navigating to the above IP address
      • Debug on iOS and Android with the PhoneGap Developer mobile app,
        • Windows: you may need to open port 3000 in Windows Firewall.
      • Debug with a simulator for Android or iOS.

Platforms

Browser

This should work after Getting Started is completed. No additional steps needed!

Android

Follow these steps:

  1. Install Android Studio.
    • In Android Studio, open preferences, then navigate Appearance & Behavior > System Settings > Android SDK. In the SDK Platforms tab, install API Level 28.
    • Create an environment variable for ANDROID_HOME, set the value to the location of your Android SDK installation.
      • On Windows, this is something like C:\Users\<UserName>\AppData\Local\Android\Sdk
    • Edit the PATH environment variable to contain the two Android SDK paths.
      • On Windows, this is like C:\Users\<UserName>\AppData\Local\Android\Sdk\platform-tools and C:\Users\<UserName>\AppData\Local\Android\Sdk\tools (e.g., /Android/SDK/platform-tools and /Android/SDK/tools).
    • Follow these instructions.
  2. Create an environment variable for JAVA_HOME.
    • Option 1: use the JDK path already installed by Android Studio (e.g., on Windows, C:\Program Files\Android\Android Studio\jre)
    • Option 2: download and extract OpenJdk v1.8.0; the path is the root directory of the extracted files
  3. Edit the PATH environment variable to contain the Gradle path.
  4. Build! phonegap build android
    • Linux/Mac: If you receive the error "spawn: EACCES", then run the following command:
    sudo chmod 777 "/Applications/Android Studio.app/Contents/gradle/gradle-4.1/bin/gradle"
    
    Watch the space in "Android Studio.app"! See this GitHub comment for details.
  5. Open Android Studio. Follow these instructions to start debugging on a physical or emulated device.

iOS

Follow these steps.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 92.8%
  • JavaScript 5.5%
  • CSS 1.7%