GithubHelp home page GithubHelp logo

codewired / friendlypix-updated Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 2.0 1.56 MB

FriendlyPix is a cross-platform Firebase example app. This Friendly Pix Web Clone is a sample app demonstrating how to build a Single Page JavaScript/Web app with the Firebase Platform for freshers. The original Repository is no longer maintained!

License: Apache License 2.0

JavaScript 71.71% CSS 8.60% HTML 19.70%

friendlypix-updated's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

kenara hoai

friendlypix-updated's Issues

Improve scalability and privacy of Likes and Following

As noted in comments in FirebaseHelper.js, registerForLikesCount() and registerForFollowersCount() won't scale well if there are lots of likes or follows.

I got an informative answer from @puf when I asked about this here https://stackoverflow.com/questions/60136729/scalability-of-numchildren-function-in-firebase-realtime-database

This code sample https://github.com/firebase/functions-samples/blob/master/child-count/functions/index.js shows how this can be handled, and I've implemented it in my fork here: https://github.com/kenara/FriendlyPix-Updated/blob/master/src/FirebaseHelper.js#L714 with a corresponding function here:
https://github.com/kenara/FriendlyPix-Updated/blob/master/functions/likeCount.js

The function updates a new /liked node with the count.

Also, liking in Friendlypix is understood by users to be anonymous. My friendlypix-inspired site is a job board, and who favorites a job needs to be private. With the above arrangement I could set the rule for "likes": ".read" to false.

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.