The following steps will help you setting up your development environment.
-
Download and install the LTS version of Node.js: https://nodejs.org/
-
Download and install the latest version of git: https://git-scm.com/
-
Switch to a directory you want to clone the git repo to, open a PowerShell and type in the following command:
git clone https://github.com/kaizeneer/rAPPort.git
-
Download and install the latest version of Visual Studio Code: https://code.visualstudio.com/
-
Open Visual Studio Code and open the folder with the cloned git repository
-
Install "Cordova Tools" (Microsoft) extension inside Visual Studio Code (see: https://github.com/microsoft/vscode-cordova)
-
Download and install Java JDK 8 (required to run Cordova Tools!) and set the Environment Variables: https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
a. create new system variable JAVA_HOME: C:\Program Files\Java\jdk1.8.0_231
b. append to PATH: C:\Program Files\Java\jdk1.8.0_231\bin
-
Download and install Android Studio. Run it and ensure to install the Android SDK Platform 28 (= Android 9) and a device emulator! Then set the Environment Variables: https://developer.android.com/studio/
a. create new system variable ANDROID_SDK_ROOT: C:\Users<user>\AppData\Local\Android\Sdk
b. append to PATH: C:\Users<user>\AppData\Local\Android\Sdk\emulator;C:\Users<user>\AppData\Local\Android\Sdk\tools
-
Download Gradle, unzip it into "C:\Program Files\Gradle" and set the Environment Variables: https://gradle.org/releases/
a. create new system variable GRADLE_HOME: C:\Program Files\Gradle\gradle-6.0.1\bin
b. append to PATH: C:\Program Files\Gradle\gradle-6.0.1\bin
-
Restart Visual Studio Code to load the Environment Variables set above.
-
Open a new terminal inside Visual Studio Code and install cordova and all required node modules:
npm install -g cordova npm install
-
Add the platforms that you would like to build for using the open terminal in Visual Studio Code:
cordova platform add android cordova platform add browser
-
Open a Terminal inside Visual Studio Code, generate an APK and deploy it on your Android device:
cordova build android
-
Alternatively you may also use the debugger tools, e.g. "Run Android on device" or "Simulate Android in browser" (requires Google Chrome: https://www.google.com/chrome/). Just accept the offer of Visual Studio Code and add a lauch.json and you are ready to go!
-
If everything is running smoothly, commit your changes and create a Pull Request :-)