Here are the steps to build and test this app on a Mac in the iOS emulator.
The steps to test on a Windows development machine, and with the app as a mobile web are similar and you can find more information here on Getting started with Trigger.io.
- Install the toolkit from https://trigger.io/forge/toolkit
- Start the Toolkit and create an account
- Create a new app and note the app directory
- Open a terminal and navigate to your app directory.
- Copy your identity.json file away and remove the template contents in the src directory:
- cd src
- mv identity.json ..
- rm -rf *
- rm .forgeignore
- Checkout this repository and copy the identity.json file back:
- git clone https://github.com/amirnathoo/Wine-Box .
- cd ..
- mv identity.json src/
- In the Toolkit, click on the app name, navigate to the 'Forge' option in the left-hand menu and click the 'iOS' button to run it. The first time this will take a minute or so, subsequent incremental builds will be very fast.
- You'll see the full console output while Trigger.io performs the compile and then iPhone emulator will start up in a few seconds.
- You can navigate back to the 'Forge' page and click the 'Web' button to also run the app as a mobile web app. In this way you can take photos and rate wine with the native iOS app, and see that reflected in the web app version demonstrating the synch capability of Firebase used inside the Trigger.io mobile app.
The app includes photo-taking functionality so to test that in the emulator, you need to have photos pre-loaded. Instructions on how to set that up are here: http://stackoverflow.com/questions/468879/adding-images-to-iphone-simulator