Skip to content

Development Environment Setup

Shun Kosaka edited this page Oct 30, 2023 · 9 revisions

Prerequisites

Setup

1. Install git (for Windows)

https://gitforwindows.org/

2. Install node.js

https://nodejs.org/en/

3. Install EAS CLI

npm i -g eas-cli

4. Install yarn

https://classic.yarnpkg.com/en/docs/install

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.

npx expo start

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

Clone this wiki locally