Install dependencies:
npm install
Create a config file by copying local config example:
cp config.local.json config.json
You can edit the config file as suited:
Parameter | Description |
---|---|
baseUrl |
Ylitse API base URL |
loginUrl |
Ylitse service login URL |
feedBackUrl |
Feedback form URL |
termsUrl |
Terms and conditions URL |
userGuideUrl |
User's manual URL |
After installation run metro package bundler:
npm start
To deploy the app on an android device run:
npm run android
Or on an iOS device (you have to use a MacBook for this):
npm run ios
Run the steps described below in separate terminals.
- Go to Ylitse API repo and start the backend locally (make sure
admin
user exists):
source env/bin/activate
make run-gunicorn
- Start bundler:
make bundler
- And finally run tests (make sure password matches the one configured for the local API):
YLITSE_API_PASS=random make e2e
By default emulator device name is pixel
, but you can overwrite it like so:
YLITSE_DEVICE=pixel_xl YLITSE_API_PASS=random make e2e