Logo
  • PHP
    • HipHop / HHVM
    • Modern PHP
    • PHPStorm
    • LAMP
    • Laravel
    • Composer
    • PDO
  • JavaScript
    • node.js
    • AngularJS
  • CSS
    • SASS
    • “CSS4” (CSS level 4)
  • HTML
  • Git
  • LAMP
  • Vagrant
  • UI / UX
  • Architecture of …
  • Off-Topic
With ♥ from Berlin
February 23, 2014
Chris
AngularJS, JavaScript
0

Push database changes to all clients in real-time (!) with AngularJS and Firebase

PreviousNext
js javascript

The coolest talk I’ve seen this week: Anant Narayanan of Firebase shows how to build a simple but really impressive real-time comment-application with AngularJS at ng-conf 2014, a Utah based AngularJS conference. The cool thing: The database part is entirely handled by Firebase, a hosted database solution that pushes all database changes directly to all connected clients – in real-time! Disclaimer: We talk about something that feels like real-time, in hardcore IT terms it’s not really real-time. Anant also looks at the database data while it changes. Jump to 8:50 and 16:30 for a live demo, it’s really awesome and feels like a big step forward for modern web development. It’s disturbing how JavaScript takes over the world – in a positive way.

By the way, did you note the super-sympathic start into the presentation ? I really like that guy!

Firebase is a commercial product. Small instances are totally free, for professional usage attractive plans are available, up to millions (!) of connected clients.

 

This article was written quite a while ago (9 years), please keep this in mind when using the information written here. Links, code and commands might be outdated or broken.

Random articles

  • Two excellent introductions into AngularJS by Todd MottoTwo excellent introductions into AngularJS by Todd Motto
  • SASSmeister is a real-time JSfiddle for SASS / CSS. Awesome!SASSmeister is a real-time JSfiddle for SASS / CSS. Awesome!
  • Learn AngularJS in 20 (or 90) minutes with Dan WahlinLearn AngularJS in 20 (or 90) minutes with Dan Wahlin
  • New GitHub repo: simple php-long-polling for creating real-time appsNew GitHub repo: simple php-long-polling for creating real-time apps
  • How Snapchat wants to earn money (by establishing vertical videos)How Snapchat wants to earn money (by establishing vertical videos)
  • The SSL Heartbleed bug explained in 30 secondsThe SSL Heartbleed bug explained in 30 seconds
  • How JavaScript really works – An introduction into the JavaScript call stack by Philip Roberts (20min video)How JavaScript really works – An introduction into the JavaScript call stack by Philip Roberts (20min video)
  • Get Github’s code colors in PHPStorm (2014 style)Get Github’s code colors in PHPStorm (2014 style)
  • Vote for “Hack” for HipHop/HHMV support (future style PHP) in PHPStorm 8Vote for “Hack” for HipHop/HHMV support (future style PHP) in PHPStorm 8
angularangularJSfirebasereal-time
Share this

Leave A Comment Cancel reply

php

Somebody is writing a compiler for PHP, compiles down to machine code, outperforms HHVM

Yes, that’s right. Recki-CT compiles PHP down to machine code. It’s unbelievable what’s going on in the PHP world in

Increase your HTML / CSS coding speed with EMMET

Codeninja.com just published a very interesting article about the excellent free code-completion/code-generation tool EMMET, which allows you to create huge

GitHub introduces revert button / rollback for merged pull requests

Once again GitHub delivers an excellent feature: Clean one-click rollbacks / reverts / undos of pull requests, very very useful,

laracon-2014-eu-amsterdam

Laracon 2013 – Kapil Verma: Engineering Complex Applications with Laravel 4 (40min video)

More videos of 2013’s and 2014’s Laracon events from US and EU on their Youtube channel. This article was written

How to get a single table out of a massive MySQL .sql database backup file (mysql dump splitter)

Imagine the following situation: Somebody backs up an entire MySQL database – a very large one – with common tools.

Experimenting with HHVM at Etsy (Link)

Extremely interesting blog post of Etsy on how they try out HHVM / HipHop: https://codeascraft.com/2015/04/06/experimenting-with-hhvm-at-etsy/ This article was written quite

pdo-debug

Debug PDO with this one-line function. Yeah!

Update: This article is a little bit older, the tool has changed gently. Everthing this article still works exactly like

Going node.js at Netflix (Slides by Micah R of Netflix)

It’s awesome how node.js takes over the absolute AAA-level corporate world. Note that node.js is still an early alpha product

php

PHP.net hacked, but most things are fine again

Between 22nd and 24th October 2013 php.net served JavaScript malware (that was built to use security holes in the usually

css

How to center a div vertically and horizontally (modern methods, without fixed size!)

“How to center a div” (inside another div or inside the body itself) is one of the most discussed questions

1/4

Categories

Search

composer
Composer problems ? Try full reset !
php
How to install sqlite driver for PHP in Ubuntu & Debian
digitalocean coupon
DigitalOcean VPS coupon codes for december 2013 and early 2014
What’s new in PHPStorm 9
Soundcloud’s “VP of Engineering” about using SSDs
Dangerous Performance Myths in the Web (video talk by Thomas Lohner, PHPUG Latvia)
First look on Gitter, the chat for GitHub
php
How to install PHP curl extension (in 5 seconds)
php
Somebody is writing a compiler for PHP, compiles down to machine code, outperforms HHVM
times-new-roman
The Times talks about Times New Roman (3min video)
[Link] Redesigning SoundCloud by Evan Simoni
PHPMyAdmin not found after installation ? Here’s a fix (Ubuntu 12.04) !
sass laravel
Extremely easy SASS in Laravel (with pure PHP)
ubuntu-14-04-lts lamp
How to install/setup a basic LAMP stack (Linux, Apache, MySQL, PHP) on Ubuntu 14.04 LTS
october cms
[Link] How To Install October CMS on a VPS running Ubuntu 14.04

Tags

apache bash centos composer conference coupon CSS debian fonts framework git GitHub hack HHVM HipHop HTML HTML5 IDE JavaScript JS LAMP laravel linux mod_rewrite MVC MySQL Nginx optimization PHP PHP 5.5 PHP 5.6 phpmyadmin PHPStorm security server SSD Ubuntu UI UX vagrant video virtual machine voucher VPS wordpress
Side-Project: Wordle-Solver:
www.wordle-helper.info

Pages

  • Privacy Policy
 
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT