Giter Site home page Giter Site logo

ionic-chat-final's Introduction

Ionic Chat

Setup

  • Install Ionic, Cordova, & Bower
    • npm install -g ionic
    • npm install -g cordova
    • npm install -g bower

Step By Step

Step 1

  • Create new project
    • ionic start chat sidemenu
    • cd chat
    • ionic serve -c

Step 2

  • Add project files
  • Replace index.html
  • Replace js/app.js, js/controllers.js, and js/services.js
  • Remove all templates and replace

Step 3

  • Add libraries
    • ionic add firebase
    • ionic add angularfire
    • ionic add moment
    • ionic add ngCordova
  • Add libraries to index.html

Step 4

  • Add modal

Step 5

  • Add scroll delegate

Step 6

  • Add action sheet

Step 7

  • Add picture functions

Last

  • 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

Error?

  • 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

Debugging

  • Safari - Dev Tools
  • Chrome - Dev Tools

Homework

  • Add Gulp tasks

    • npm install -g gulp
    • npm install -g gulp-utils
    • npm install
  • Add Session details

ionic-chat-final's People

Contributors

thack avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.