Development Environment Setup
Prerequisites
- Complete Salesforce Initial Setup and Heroku Initial Setup.
- Go to https://expo.io/ and sign up. Then install the Expo client on your iOS/Android device.
Setup
1. Install git (for Windows)
https://gitforwindows.org/
2. Install node.js
https://nodejs.org/en/
3. Install yarn
https://classic.yarnpkg.com/en/docs/install
4. Install expo-cli
yarn add global expo-cli
5. Clone the repository
git clone https://github.com/SFDO-Community-Sprints/GrassrootsMobileSurveyApp.git
6. Install plugins
On the mobile app directory, run the following command.
yarn install
7. Create an environment variable file
Create a file called .env
in the root folder of the repository and copy and paste this line into it:
LOGGING_LEVEL=DEBUG
Run the app
First make sure that your computer and mobile device are connected to the same network.
In the root folder of the repository, run the following command.
yarn start --clear
A new browser tab will open. Scan the QR code at the bottom left (or follow the alternative instructions there). The app will launch on your device.