Run on mac:
cd frontend
npm install
npx react-native start
open ios/ADEManager.xcworkspace
install cocoapods
In xcode click the run button to run the app on the simulator
Run on windows:
Install JDK
- Go to the Oracle JDK download page and download the x64 Installer: Javascript: jdk-11.0.25_windows-x64_bin.exe, https://www.oracle.com/java/technologies/javase-jdk11-downloads.html
- Run the installer and follow the prompts to install the JDK.
- Set the JAVA_HOME environment variable:
- Right-click on This PC or My Computer, then click on Properties.
- Click on Advanced system settings on the left.
- Click on Environment Variables.
- Under System variables, click on New.
- Set the variable name as JAVA_HOME and the variable value as the path to the JDK installation:
- C:\Program Files\Java\jdk-11.x.x
- Add the following to the PATH environment variable: %JAVA_HOME%\bin
Install Android Studio
- Install Android Studio by following the prompts: https://developer.android.com/studio
- During installation, make sure the boxes for Android SDK, Android Virtual Device (AVD), and Android SDK Platform are checked.
- Open Android Studio.
- Go to Configure -> SDK Manager (bottom right corner on the start screen).
- Note the path to the Android SDK Location (usually something like C:\Users<YourUsername>\AppData\Local\Android\Sdk)
- Now, set the ANDROID_HOME environment variable, by right-clicking This PC or My Computer, and selecting Properties.
- Click on Advanced system settings -> Environment Variables.
- Under System variables, click New.
- Set the variable name as ANDROID_HOME, and the value as the path to your Android SDK (from step 5 above), for example: C:\Users<YourUsername>\AppData\Local\Android\Sdk
- Add the following to your PATH variable:
- C:\Users<YourUsername>\AppData\Local\Android\Sdk\platform-tools
- C:\Users<YourUsername>\AppData\Local\Android\Sdk\tools Open Android Studio and click on AVD Manager.
- Create a new virtual device and select your desired phone model and system image (typically, a recent version of Android).
- Start the emulator from Android Studio. then finally run: cd frontend and npx react-native start in one terminal. Then start another terminal instance in a separate tab and run: android npx react-native run-android which will run the app in android studio.
