Thanks contributing to Epilogue!
Epilogue is a React Native application. To get started, you’ll need to follow these steps:
- You’ll need NodeJS. On a Mac, you can install it with Homebrew:
brew install node
. - For optimal reload performance, you’ll also need Watchman, which you can get with
brew install watchman
. - Epilogue prefers Yarn over NPM for node dependencies. Install Yarn, and then run
yarn install
to fetch dependencies.
- You’ll need Xcode. You can download it from the App Store. You also will need to have configured the Xcode Command Line tools. Make sure there’s one set in Preferences > Locations > Command Line Tools.
- For iOS, Epilogue also uses CocoaPods to manage iOS dependencies. In the root directory, run
bundle install
to install Cocoapods. You’ll need the correct version of Ruby on your system, but it will prompt you with the version you need. From inside the iOS directory runbundle exec pod install
to install the required dependencies. - To start the app in the iOS simulator, in the root directory, run
yarn ios
.
- You’ll need a JDK:
brew install --cask adoptopenjdk/openjdk/adoptopenjdk11
- You’ll also need to download and install Android Studio. Once you’ve downloaded it and moved it to your Applications folder, you’ll need to ensure that you run Studio to make it through the installation process. That will download a simulator.
- React Native requires a specific version of the Android SDK. This requires some special configuration in Android Studio. Instructions for how to configure and download the required version of the Android SDK are here.
- Create a file in the
android
directory calledlocal.properties
. In that file paste:sdk.dir = /Users/USERNAME/Library/Android/sdk
changing USERNAME to your system username. This file is .gitignored and will not be committed. - You need to generate a debug keystore. To do this, cd into
android/app
and runkeytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000
. This will generate adebug.keystore
file that is gitignored and will not be committed. - You’ll also need to open Android Studio and go to Tools > Device Manager to download a simulator.
- To start the app in the Android simulator, in the root directory, run
yarn android
.
yarn start
: General start for react-nativeyarn ios
: Starts the iOS app in the simulatoryarn android
: Starts the Android app in the simulatoryarn test
: Runs tests