manalilib / firebase-cms

Basic CMS with Firebase and Angular

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Firebase-cms

Basic CMS with Firebase and Angular

Demos

Front-end: demo
Back-end: demo

##Development / Build

You need to have Grunt and Node.js installed. Then run the command:

	npm install
	grunt default

##Testing

Install an http-server run:

	npm install http-server -g

Running the server:

	http-server

This will create a server on http://localhost:8080/ and let you test this CMS

##Setup

Steps:

  • Create a firebase account
  • Create a firebase app
  • Add the following firebase rules
  • Configure the file js/config.json with your firebase app location

Firebase Rules:

```command { "rules": { ".read": true, "categorias": { ".write": "auth.provider == 'password' && auth != null" }, "paginas": { ".write": "auth.provider == 'password' && auth != null", ".indexOn": "state" }, "imagens": { "$page_id" : { ".write": "auth.provider == 'password' && auth != null && root.child('paginas/'+$page_id).exists() && root.child('paginas/'+$page_id).child('state').val() == 'available'", ".indexOn": ["ownerCategoria", "owner"] } } } } ```

##Todos

  • Add internationalization capabilities
  • Remove from codebase any portuguese sentences/words
  • Add capabilities of have dynamic fields
  • Add response for bad login

About

Basic CMS with Firebase and Angular


Languages

Language:JavaScript 53.0%Language:CSS 27.2%Language:HTML 19.8%