Git Product home page Git Product logo

firefeed's Introduction

Firefeed

Firefeed is a web app that lets users post small messages called sparks to their feed. You can follow other users, and their sparks will appear on your feed.

The unique property of this application is that it is built entirely using client side logic - no server neccessary - other than to serve the static HTML/CSS/JS files, of course.

This is made possible by Firebase. A detailed explanation of how the app was built is available here.

Navigating the Code

The core application logic is in www/js/firefeed.js. It is hooked up to the UI in www/index.html via www/js/firefeed-ui.js. firefeed.js consists of 11 public methods, all of which are documented with jsdoc.

If you'd like to embed a feed like Firefeed into your app, we recommend importing firefeed.js and hooking it up to your own UI. Take a look at firefeed-ui for an example of how this is done!

iOS Client

An iOS client is also available. Download the app from the App Store and browse the source.

Exercises for the reader

  1. Implement unfollowing a user.
  2. Implement protected accounts. If a user opts into a protected account, their sparks can only be viewed by people they approve.
  3. Implement search based on #hashtags. (Hint: Instead of searching for the actual value through the global list of sparks, consider creating a new bucket for every hashtag when it is first used, and then populating it with spark references).
  4. Implement retweets, favorites and @ messages to other users. (Hint: You can sort the @ messages at creation time for ease of rendering on the consumer side).
  5. Implement direct messages. (Hint: Use a mailbox style system between users, and setup your rules such that you can write to another user's mailbox but not read from it).

Help

Please feel free to reach out to us if you have questions, comments or suggestions!

License

MIT.

firefeed's People

Contributors

anantn avatar mikelehen avatar davideast avatar gsoltis avatar robertdimarco avatar katowulf avatar asciimike avatar douglascalhoun avatar lopez-alex avatar startupandrew avatar bradfol avatar arunthampi avatar

Watchers

DZT Sukanya avatar

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.