reneabreu / ionic-starter-firebase

A Ionic Starter Template with Firebase.

Home Page:https://gitlab.com/reneabreu/ionic-starter-firebase/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IONIC-STARTER-FIREBASE

Just a simple Ionic starting template with Firebase set up and sidemenu.

This template does not work on its own. It is missing the Ionic library, and AngularJS.

Installing

Since Ionic doesn't use GitLab as a source for themes, you have to install it manually. :(

But no need to be sad, it's still simple! Just start a new project, as usual:

$ ionic start myApp

Download this repo and replace the www folder content with this.

Update

To make things easier I've created a mirror to my github and now you can install it like this:

ionic start myApp https://github.com/reneabreu/ionic-starter-firebase

Don't forget the main repo is in GitLab, so everything will happen there.

Configuring Firebase

Change your database rules:

{
  "rules": {
    ".read": "auth != null",
    ".write": "auth != null"
  }
}

In the config.js file, replace this with your firebase project info:

.constant("CONFIG", {
  "FIREBASE_API": '',
  "FIREBASE_AUTH_DOMAIN": '',
  "FIREBASE_DB_URL": '',
  "FIREBASE_STORAGE": '',
  "MESSAGE_SENDER_ID": ''
});

You can find your info under Authentication > Web Setup

Author

Credits

  • Sunil Kumar - I've used his auth system as a starter point

About

A Ionic Starter Template with Firebase.

https://gitlab.com/reneabreu/ionic-starter-firebase/


Languages

Language:JavaScript 66.6%Language:HTML 33.2%Language:CSS 0.2%