Development Environment Setup

Prerequisites

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.

Metro bundler


Back to top

Grassroots Mobile Survey is a tool built and maintained by a community of volunteers through the Open Source Commons program. This is not a Salesforce-owned product. If you need support, go to the Trailblazer Community Group.