Skip to content

moafzalmulla/firebase-cms

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 53.0%
  • CSS 27.2%
  • HTML 19.8%