Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hybrid HTML5+JS Mobile app + build scripts #3

Open
michalradziwon opened this issue Jan 27, 2015 · 2 comments
Open

Hybrid HTML5+JS Mobile app + build scripts #3

michalradziwon opened this issue Jan 27, 2015 · 2 comments
Assignees

Comments

@michalradziwon
Copy link
Collaborator

No description provided.

@michalradziwon
Copy link
Collaborator Author

Here is the step by step build and deploy process for the app. I will prepare a script that does it automatically soon.

Prerequisites

  • Install a USB driver for your Android device
  • Enable developer options and USB debugging on the device
  • Connect the device to your computer

Build and Deploy process

  • Install Node.js
  • Install the cordova module using npm utility of Node.js:
npm install -g cordova
  • Create Social Search app:
cordova create cordova com.dendryt.socialsearch SocialSearch
  • Add Android platform. That will allow us to deploy the app on Android devices:
cd cordova
cordova platform add android
  • Build Client app and copy it to Cordova project dir (do not worry, all of that will be later done by a building script)
cd ..
gulp build
cp -r build/** cordova/www/
  • Build Cordova project and deploy it on Android device:
cd cordova
cordova run
  • Now the app should be deployed and run on the Android device

For more details see official Cordova documentation page.

@michalradziwon
Copy link
Collaborator Author

Hybrid app deployed on desktop computer and Nexus 9 tablet:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants