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.
- 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 vianpm install -g npm@4
).git --version
2.14 (or greater)
- Install PhoneGap
npm install -g phonegap
(you may need to usesudo
in linux/mac)phonegap --version
9.0.0 (or greater)
- Fork and Clone this repo
- Example:
git clone https://github.com/~your~account~name~/pedi-crisis.git
- (or just download the project files)
- Example:
- 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
- Windows: consider disabling symlinks for compiled node packages, via
- 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.
This should work after Getting Started is completed. No additional steps needed!
Follow these steps:
- 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
- On Windows, this is something like
- 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
andC:\Users\<UserName>\AppData\Local\Android\Sdk\tools
(e.g.,/Android/SDK/platform-tools
and/Android/SDK/tools
).
- On Windows, this is like
- Follow these instructions.
- 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
- For Windows, try OpenJdk v1.8.0_232-1.
- Option 1: use the JDK path already installed by Android Studio (e.g., on Windows,
- Edit the PATH environment variable to contain the Gradle path.
- Download and extract Gradle version 4.10.3; the path is the
\bin
directory of the extracted files
- Download and extract Gradle version 4.10.3; the path is the
- Build!
phonegap build android
- Linux/Mac: If you receive the error "spawn: EACCES", then run the following command:
Watch the space in "Android Studio.app"! See this GitHub comment for details.sudo chmod 777 "/Applications/Android Studio.app/Contents/gradle/gradle-4.1/bin/gradle"
- Open Android Studio. Follow these instructions to start debugging on a physical or emulated device.
Follow these steps.