Zend On The Go is a sample mobile application designed to show developers how to create mobile applications on top of existing PHP back-ends. The application uses HTML5/CSS/JS on the client side and Zend Framework + Apigility with Zend Server on the back-end. The application itself monitors your application and gives you live statistics on your server performance.
This repository contains the source code of the mobile part of the application. The source code of the server-side API part of the application is available in the zendtech/on-the-go-api repository.
- Switch to the Git perspective.
- Click 'Clone a Git repository' toolbar button in the Git Repositories view to launch the Clone Git Repository wizard.
- Paste the Git repository URL in the URI field: https://github.com/zendtech/on-the-go-mobile.git (this URL will be different if you have forked the repository)
- All other fields will be automatically filled. Click the Next button.
- If asked, accept RSA key fingerprint from github.com.
- Don't change anything on the Branch Selection, just click the Next button.
- Optionally, change the location in the Directory field where the repository will be cloned.
- Select the 'Import all existing projects after clone finishes' checkbox.
- Click Finish to clone the repository.
- Switch back to the PHP perspective, you will find the on-the-go-mobile project in the PHP Explorer view.
The easiest way to run the mobile application from Zend Studio is by using the CordovaSim emulator. It's a light-weight and fast web-based emulator that allows testing of Cordova-based mobile applications.
- Right-click on the mobile project in the PHP Explorer view.
- Select Run As > Run with CordovaSim from the context menu.
You can also use the other available options for launching the application: the emulators of the Android, iOS and Windows Phone platforms. They required additional installation and configuration of the respective platform SDK.
- Install the Google Chrome web browser, if you haven't yet.
- Run the mobile app with CordovaSim. See the previous section for details.
- Right-click on the device frame of the emulator and select Debug > Dev Tools... from the context menu.
- Click on the hyprelink in the Dev Tools popup dialog. This will open the mobile in Chrome Dev Tools.
- Switch to the Sources tab.
- Navigate through the source tree and open a JavaScript file, e.g. js/services/authentication.js
- Place a breakpoint on a line number.
- Execute an action in CordovaSim, e.g. login
- The execution will stop on the breakpoint in Chrome Dev Tools.