Giter Club home page Giter Club logo

firefly's Introduction

firefly

Netlify Status

Netlify with Google Firebase

Web Projects from 10 years ago didn't need to be bundled and minified. All I needed to do was write some html, style it with some css, and add some JavaScript.

โœจ This project uses VueJS without needing a build environment. ๐ŸŒŸ

Instead of downloading 200+ Mb of node packages ๐Ÿ’ฉ before I can write a single line of code, I have included only the packages I needed via <script> tags on index.html. ๐Ÿ‘

I used the code found in https://firebase.google.com/docs/auth/web/password-auth for authentication and wrapped it up in a Vue Component.

Tools used

Firebase Auth

I created a firebase project which uses the free spark plan. For Auth I have allowed email and google as my sign in methods.

Firestore Data Model

Firestore is a document store, a little different if you are used to SQL for keeping data organized. I have a couple of collections, and still experimenting but I'll try and publish the data model when I am more settled.

Firestore Rules

I watched this video on how to configure the rules to my firestore database.

These are the rules I came up with so far.

rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    match /users {
      match /{userID} {
        allow create: if request.auth.uid == userID;
      }
      match /{userID}/tasks/{taskID}{
        allow create, write, read: if request.auth.uid == userID;
      }
    }
    match /blogposts/{post} {
    	allow read: if true;
      allow create: if request.auth.uid != null;
      allow write: if request.auth.uid == resource.data.author;
    }
    match /{restOfPath=**} {
      allow read: if true;
      allow write: if false;
    }
  }
}

firefly's People

Contributors

vandorjw avatar

Stargazers

Kamal Mahmud avatar

Watchers

 avatar James Cloos avatar

firefly's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.