- Install Ionic, Cordova, & Bower
npm install -g ionic
npm install -g cordova
npm install -g bower
- Create new project
ionic start chat sidemenu
cd chat
ionic serve -c
- Add project files
- Replace index.html
- Replace js/app.js, js/controllers.js, and js/services.js
- Remove all templates and replace
- Add libraries
ionic add firebase
ionic add angularfire
ionic add moment
ionic add ngCordova
- Add libraries to index.html
- Add modal
- Add scroll delegate
- Add action sheet
- Add picture functions
-
Native app tools
- Install Xcode
- Install Android Studio
-
Add platform and plugin
ionic platform add ios
ionic plugin add org.apache.cordova.camera
-
Run on device with live reload
ionic emulate ios --l --c
-
Useful commands
ionic emulate ios
ionic build ios
ionic run ios
ionic platform add android
ionic build android
-
Did you get this error?
[$injector:modulerr] Failed to instantiate module chat due to:
[$injector:modulerr] Failed to instantiate module chat.services due to:
[$injector:modulerr] Failed to instantiate module firebase due to:
[$injector:nomod] Module 'firebase' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
-
Make sure you added the libraries:
ionic add firebase
ionic add angularfire
ionic add moment
ionic add ngCordova
- Safari - Dev Tools
- Chrome - Dev Tools
-
Add Gulp tasks
npm install -g gulp
npm install -g gulp-utils
npm install
-
Add Session details