Skip to content

Latest commit

 

History

History
87 lines (58 loc) · 2.17 KB

README.md

File metadata and controls

87 lines (58 loc) · 2.17 KB

CoopCycle

Build Status

Build Status

Prerequisites

Install Node, Watchman & React Native CLI as described here.

Install dependencies to compile node-canvas depending on your OS.

Setup - All Platforms

Install dependencies with Yarn.

$ yarn install

Populate your local .env file:

$ cp .env.dist .env

Set up Firebase

Setup - Android

Get a Google Maps API Key

A Google Maps API Key is needed at compilation time for Android (see AndroidManifest.xml).

GOOGLE_MAPS_BROWSER_KEY=YOUR_API_KEY
GOOGLE_MAPS_ANDROID_KEY=YOUR_API_KEY

Setup - iOS

iOS development requires macOS and CocoaPods.

$ sudo gem install -n /usr/local/bin cocoapods
$ cd ios && pod install

Testing

yarn test

Troubleshooting

« Have you tried turning it off and on again? »

watchman watch-del-all
rm -rf $TMPDIR/react-*
rm -rf $TMPDIR/haste-map-react-native-packager-*
rm -rf ~/.rncache
rm -rf node_modules
rm yarn.lock
yarn cache clean
yarn install