Node can be downloaded from here. The project maintainer recommends using yarn package manager which can be installed by running npm install -g yarn once you've installed NodeJS, but if you prefer you can also keep using npm.
run yarn global add react-native-cli
The Java JDK can be downloaded from here
Android Studio may be downloaded from here
- Clone the project: Run
git clone https://github.com/GeromeSchutte/LEFA-rest-app.git - Navigate to the project folder: Run
cd LEFA-rest-app - Install packages: Run
yarn - Add java.exe directory location to the path
- Add the Android SDK directory location to an environment variable (system variable on windows) named ANDROID_HOME
- Start an Android device emulator or connect an Android device with USB debugging enabled to your computer.
- Navigate to the project's root folder, and run
yarn run-android
Follow the steps listed here.
Follow second solution in answer listed here.
The build server sometimes struggles to recompile when imports are added, removed or changed. Close the build server and rerun yarn run-android.
Registration using the Spree API requires an admin user Spree API Key. At runtime, the API key is read from /src/Shared/API/APIConstants.js and included in the registration request, but for security reasons, the actual API key is to be left undefined as this repo is public. If registration is to be tested using the Spree platform, generate an API key using an admin user, and copy it into the X-Spree-Token field in /src/Shared/API/APIConstants.js. Do not commit the changes to this file.