GithubHelp home page GithubHelp logo

carlhuth / angular-firebase-cordova-seed-with-simplelogin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jqrgen/angular-firebase-cordova-seed-with-simplelogin

0.0 1.0 0.0 6.62 MB

An AngularJS and Firebase (with routing) seed generated by Yeoman, with Facebook simpleLogin

License: MIT License

JavaScript 4.33% HTML 1.93% CSS 0.13% Makefile 6.78% Java 79.73% Batchfile 1.06% Objective-C 3.91% QML 0.19% C++ 0.52% C# 1.40%

angular-firebase-cordova-seed-with-simplelogin's Introduction

Angular-Firebase-Cordova-seed-with-simpleLogin

An AngularJS and Firebase (with routing) seed generated by Yeoman, with Facebook simpleLogin

Getting started

Make sure you have Yeoman installed with the AngularJS-generator and the AngularFire-generator. I also use Cordova/Phonegap to build my webapp to native mobile platforms.

In this example I use android platform, Facebook login and routing in AngularJS.

1. Generate a seed and needed tools

cordova create loginExample com.example.hello AngularFireLogin
cd loginExample
cordova platform add android
mkdir dev && cd dev
yo angular
yo angularfire

Prompts asked on angularfire

  • [?] Name of your Firebase instance: (required) from your URL: http://INSTANCE.firebaseio.com
  • [?] Shall I include FirebaseSimpleLogin? Y
  • [?] Which providers shall I install? Facebook (select from a list of simple login providers you have enabled for your Firebase)
  • [?] Shall I include routeSecurity? Y (allows you to specify authRequired on a route and force user to log in before they can view it)
  • [?] Shall I create a rudimentary login screen? Y (this creates views/login.html and controllers/login.js, which provide registration (for password auth) and authentication)

2. Enable authentication with Facebook in your application

3. Build on mobile device with Cordova/Phonegap

  • Depending on what version of the generators, you may have to tweak some code and and add a logout button and a controller to it.
  • Remember to include in your index.html:
<script src="cordova.js"></script> 
  • SimpleLogin requires inAppBrowser.
cordova plugin add org.apache.cordova.inappbrowser
  • Build your code with grunt build and replace the code in your www folder with the files in your dist folder. Then it should be ready:
cordova run android

angular-firebase-cordova-seed-with-simplelogin's People

Contributors

huahub avatar

Watchers

 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.