South West Networking Group Mobile App v2
Framework tools used
- create-expo-app
- ReactNative
- NodeJS
Prerequisites
- Ensure that you have NodeJS installed on your device before running the project
Downloading Steps (Multiple Options)
- Download zip file from github website and open with vscode/ide
- open remote directly in vscode/ide with github extension
git clone https://github.com/Peekaey/SWNG-Mobile-App
and enter github credentials in CLI
Initialising project files (do before running)
- cd into project folder and
npm install
- creates node_modules folder and other files needed
How to build/run the project
Make sure you first cd into the folder
- Android:
npm run android
- IOS:
npm run ios
- Web:
npm run web
Runs app as web server
Opening the app
-
Using Android/IOS device as the emulator
- After the metro bundler is started, ensure that expo-go app is installed on either the IOS or android device and scan the QR code in the console.
The expo-go app should then open and compile the project files after which the app should now function.
- After the metro bundler is started, ensure that expo-go app is installed on either the IOS or android device and scan the QR code in the console.
-
Using on computer virtual emulator
-
For android, ensure that the android SDK is installed and a virtual device is created
- Easiest way again is to use device manager in android studio
-
For IOS, ensure that Xcode is installed and working correctly
-
Troubleshooting (Add if experiencing any)
-
Error messages related to missing android SDK when attempting to start the project
- Most likely missing the android SDK
- Download SDK Seperately (Easiest Way is to use Android Studio to download SDK)
- Most likely missing the android SDK
-
Uncaught Error: java.net.ConnectException: Failed to connect to ......
- Networking Issue, troubleshooting steps you can do are:
- Physically Plug in a cable or make sure computer and phone are on the same network
- Ensure network is on trusted/private instead of public
- Check to make sure or open port 19000 or 190001 depending on which one you use (default 19000
- Networking Issue, troubleshooting steps you can do are:
-
Can't build/bundle app with IOS phone/emulator
- Check that Xcode is installed on the device