Giter VIP home page Giter VIP logo

chatroom-cordova-ionic-angularjs-firebase's Introduction

Chat Room apps with Cordova, Angularjs & Ionic

Slides for codeaholics.hk sharing here: (Dec 2013) [http://www.slideshare.net/EddieLau1/cordova-angularjs-ionic-codeaholics] (http://www.slideshare.net/EddieLau1/cordova-angularjs-ionic-codeaholics)

Trying to make ionic, cordova and mobile SDK works together on my Mac. And built a Chat Room apps for my coding course students.

Install libraries

brew install node
npm install -g ionic
npm install -g cordova

Create new app and build for android / ios

ionic create hello-world
cd hello-world
cordova platform add android
cordova platform add ios
cordova build

Start modifying code and add features !

all the source code is in www folder read Ionic Tutorials

Running as localhost web

when you develop, you would want to run the page on your dev machine:

cd www
python -m SimpleHTTPServer 8000

you may want to use Grunt when you develop the pages on your dev machine, checkout:

http://devgeeks.org/slides/melbourne-mobile-talk-2013.2.12/

Running in emulator

npm install -g ios-sim
cordova emulate
cordova emulate ios    
cordova emulate android    

Running in connected devices

npm install -g ios-deploy
cordova run
cordova run ios 
cordova run android

Run the app in Eclipse

the android project will be available in platforms/android

  • open Eclipse
  • import the android code with "Import Existing Android Code"
  • run the application by right click on left hand side project explorer: "Run As" > "Android"
  • create a virtual Android device if you haven't. any device size and any model would do

Run the app in XCode

the xcode project file (.xcodeproj) will be available in platforms/ios

Note to myself

the following doesn't work on mobile:

<script src="//cdn.firebase.com/v0/firebase.js"></script>
<script src="//cdn.firebase.com/libs/angularfire/0.3.0/angularfire.min.js"></script>

chatroom-cordova-ionic-angularjs-firebase's People

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.