Run or Debug Saral App
Open Terminal and clone source code git clone https://github.com/Sunbird-Saral/Project-Saral.gitFor latest repository details , refer: Source Code Repository
Open Terminal and clone source code git clone https://github.com/Sunbird-Saral/Project-Saral.git
git clone https://github.com/Sunbird-Saral/Project-Saral.git
For latest repository details , refer: Source Code Repository
Change Directory to Project-Saral/ folder and switch to release tag as per release notes. git checkout tags/<tag_name>
Project-Saral/
git checkout tags/<tag_name>
$FRONTEND_FOLDER = Project-Saral/v1.0/frontend
$BACKEND_FOLDER = Project-Saral/v1.0/backend
Make sure Workspace Setup - Playbook is done. Follow below steps for debugging/running application from Android Studio
Open $FRONTEND_FOLDER/SaralApp/android folder from Android Studio.
$FRONTEND_FOLDER
/SaralApp/android folder
Run npx react-native start command from Terminal in $FRONTEND_FOLDER/SaralApp the directory.
npx react-native start
/SaralApp
Run adb reverse tcp:8081 tcp:8081 from another terminal
adb reverse tcp:8081 tcp:8081
Now click on the Run or Debug button from Android studio.
Run
Debug
When you are debugging, have debug breakpoints in android code as needed for troubleshooting.
Last updated 3 years ago
Was this helpful?