changLiuUNSW / SDG

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SDGs Mobile App

A simple React Native app for accessing sustainable development goals (SDGs) data as defined by the United Nations (https://sdgs.un.org/goals)

Project setup

Setup Environment

https://reactnative.dev/docs/environment-setup

The following tools are required.

Required tools

Tools Version Extra info
Yarn 1.22+
XCode 10.1+
Android Studio 3.5.0+
Visual Studio Code 1.32.3+
Node 10.15.3+
CocoaPods 1.7.2+
Ruby 2.6.1
Detox 17.4.4

Running on iOS locally

 # Install required dependencies
 yarn install
 # Install pods
 cd ios
 pod install
 # go back to the root folder
 # run ios
 cd ..
 yarn ios

Running on Android Locally

yarn install
# connect your android device then run android
yarn android

# if you get build errors try clean and rebuild
pushd android & ./gradlew clean & popd
yarn android

Run Linter

yarn install
yarn validate

Testing

Unit test

yarn install
yarn test

E2E test (IOS only)

Setup Detox

Environment setup

https://github.com/wix/Detox/blob/master/docs/Introduction.GettingStarted.md#step-1-environment-setup

Install AppleSimulatorUtils

https://github.com/wix/AppleSimulatorUtils

yarn install
detox build --configuration ios
detox test --configuration ios

About


Languages

Language:TypeScript 43.5%Language:Java 23.4%Language:Ruby 13.0%Language:Objective-C 11.0%Language:Starlark 4.8%Language:JavaScript 4.3%