This repository has been archived by the owner on Oct 1, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 467
Quick start guide for Ionic project
Nikolay Demyankov edited this page Apr 25, 2016
·
2 revisions
In this guide we will show how quickly you can test this plugin and start using it for development. For that we will install development add-on.
- Create new Ionic project using command line interface and add iOS/Android platforms:
ionic start TestProject blank
cd ./TestProject
ionic platform add android
ionic platform add ios
Or use the existing one.
- Add plugin:
ionic plugin add cordova-hot-code-push-plugin
- Add plugin for local development:
ionic plugin add cordova-hot-code-push-local-dev-addon
- Install Cordova Hot Code Push CLI client:
npm install -g cordova-hot-code-push-cli
- Start local server by executing:
cordova-hcp server
As a result you will see something like this:
Running server
Checking: /Cordova/TestProject/www
local_url http://localhost:31284
Warning: .chcpignore does not exist.
Build 2015.09.02-10.17.48 created in /Cordova/TestProject/www
cordova-hcp local server available at: http://localhost:31284
cordova-hcp public server available at: https://5027caf9.ngrok.com
- Open new console window, go to the project root and launch the app:
ionic run
Wait until application is launched for both platforms.
- Now open your
index.html
page inwww
folder of theTestProject
, change something in it and save. In a few seconds you will see updated page on the launched devices (emulators).
From this point you can do local development, where all the changes are uploaded on the devices without the need to restart applications on every change you made.
- Description
- Supported platforms
- App Store FAQ
- Usage Limitations
- Installation
- Quick start guides
- How plugin works
- config.xml preferences
- Plugin configuration files
- JavaScript module
- Additional utils
- Migrating from previous versions
- Contributors
- Issue creation guide