Mavo Firebase storage backend
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md Update README.md Apr 24, 2017
mavo-firebase.js adding permissions May 18, 2017
package.json firebase test working Mar 19, 2017
test.html adding permissions May 18, 2017

README.md

mavo-firebase

A Firebase storage backend for Mavo

Getting started

Sign up for Firebase

  • Sign in with your Google account (or create a new account) at https://console.firebase.google.com/
  • Create a new project and click Add Firebase to your web app. You'll see a code snippet that looks similar to the one below (with the parameters automatically filled in). Copy and paste this code into your HTML file.
<script src="https://www.gstatic.com/firebasejs/3.8.0/firebase.js"></script>
<script>
  // Initialize Firebase
  var config = {
    apiKey: "%API-KEY%",
    authDomain: "%AUTH-DOMAIN%",
    databaseURL: "%DATABASE-URL%",
    projectId: "%PROJECT-ID%",
    storageBucket: "%STORAGE-BUCKET%",
    messagingSenderId: "%MESSAGING-SENDER-ID%"
  };
  firebase.initializeApp(config);
</script>

How to use

Use the Firebase plugin by including the mv-storage attribute with the parameter firebase.

Example

<section mv-app="firebasetest" mv-storage="firebase">
  <table>
    <tr>
      <td>
        <ul>
          <li property="country" mv-multiple>
            <span property="code">Code</span>
            <span property="name">Name</span>
          </li>
        </ul>
       </td>
    </tr>
  </table>
</section>