Skip to content

reneabreu/ionic-starter-firebase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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