A react native app meant for the public to create and view appointments
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Install the latest version of Node.js https://nodejs.org/en/
Install Chocolatey: https://chocolatey.org/install
Or brew if you are on a Mac: https://docs.brew.sh/Installation
Then Install Yarn: https://classic.yarnpkg.com/en/docs/install/#windows-stable
Clone the project
In the terminal navigate into the project folder
run npm install
After npm install, if on a mac, run:
cd ios
run pod install
cd ..
If some libraries don't install, you can also run yarn add
Go to the firebase console
Click on the rtPublicApp project
Click on the setting 'gear' at the top left
Click on the general tab in the middle
Scroll to the bottom and download the google-services.json file
Place this file in rtPublicApp/android/app... do not commit this file on github
Go to https://facebook.github.io/react-native/docs/getting-started and follow their React Native CLI Quickstart guide.
Navigate to the project directory in the terminal and run yarn test
If you get an error similar to this, Keystore file '/Project-Folder/android/app/debug.keystore' not found for signing config 'debug' in react-native 0.60
Generate a keystore file with this command -> keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000 –
Place the new file in rtMobile/android/app folder
If keytool is not recognized as a command, you will have to navigate to where your keytool is an executable file somewhere in your java jdk folder, and run the command while in that folder. Cut and paste the new keystore file in rtMobile/android/app
Other common issues can be found here https://facebook.github.io/react-native/docs/troubleshooting
https://facebook.github.io/react-native/docs/running-on-device