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 to install sqlite driver for PHP in Ubuntu & DebianHow to install sqlite driver for PHP in Ubuntu & Debian
  • When PHPStorm’s cache eats up your harddisk spaceWhen PHPStorm’s cache eats up your harddisk space
  • Which server OS version to choose ? Some EOL lists of Debian, Ubuntu and CentOSWhich server OS version to choose ? Some EOL lists of Debian, Ubuntu and CentOS
  • How to show memory usage (Ubuntu)How to show memory usage (Ubuntu)
  • Frontend Ops Conf 2014 – Keynote by Alex Sexton: “Front End Operations”Frontend Ops Conf 2014 – Keynote by Alex Sexton: “Front End Operations”
angularangularJSfirebasereal-time
Share this

Leave A Comment Cancel reply

ubuntu-14-04-lts lamp

How to install/setup a basic LAMP stack (Linux, Apache, MySQL, PHP) on Ubuntu 14.04 LTS

This little tutorial shows how to setup Apache, MySQL and PHP on a Linux server, in this case Ubuntu 14.04

java vs php

Switching from Java to PHP. Seriously. A very interesting and pre-judice-free talk with Ph.D. Aris Zakinthinos

Ph.D. Aris Zakinthinos, CTO of achievers.com, a well-scalability-experienced guy and former IT employee of the military, has just delivered one

angularjs

Two excellent introductions into AngularJS by Todd Motto

If you are familiar with PHP frameworks and have a basic understanding of what a model, a controller and a

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

How to show memory usage (Ubuntu)

Always very useful: A simple command to show memory usage (Ubuntu / linux distros). cat /proc/meminfo   This article was

Hacked french TV channel exposed passwords in TV interview (video, screenshots, links)

This week a major french TV networks was hacked (Article on CNN #1, #2), resulting in 11 channels being completely

php

How to prevent PHP sessions being shared between different apache vhosts / different applications

When you run multiple applications on one server, you might run into the session-sharing problem: All your applications share the

hiphop php

Vote for “Hack” for HipHop/HHMV support (future style PHP) in PHPStorm 8

“Hack” will come. And “Hack” will change PHP, definitly. In case you never heard of it, have a look into

php

How to install PHP 7.0 on Ubuntu 14.04 LTS

You want to install PHP 7 within 60 seconds ? No problem, but first make sure you have a fresh

vagrant

A preinstalled Vagrant box with PHP HipHop / HHVM and Ubuntu 13.10 (Saucy Salamander)

Here’s an excellent downloadable Vagrant box that’s brings you a preinstalled HHVM / HipHop for PHP within a Ubuntu 13.10

1/4

Categories

Search

Perfect HTML email templates for perfect HTML emails (outlook!) with INK
How to show memory usage (Ubuntu)
hiphop php
PHP’s HipHop outperforms PHP 5.5 with Zend OPCache and Nginx by 15-20 times
phpstorm-8
When PHPStorm’s cache eats up your harddisk space
php
How to install/setup latest version of PHP 5.5 on Debian Wheezy 7.0/7.1/7.2 (and how to fix the GPG key error)
modern-php
Creator of Slim framework and “PHP – The right way” writes book: “Modern PHP”, available 2015
What’s new in PHPStorm 9
github-logo-octocat
GitHub buys Easel.io, a code-free full website creator worth a look
composer
How to install Composer on Windows 7 / 8 or Ubuntu
Install MINI in 30 seconds inside Ubuntu 14.04 LTS
js javascript
JavaScript Testing Tactics (21min video by Justin Searls)
unreal-4-engine
Tim Sweeney talks about the future of game graphics (and which hardware we need to “clone” reality)
Ghost
[FREE SERVER PROMO] Install GHOST for free on a free SSD server with this coupon
vagrant
Generate Vagrant boxes with Laravel, HipHop, Nginx, WordPress, MySQL, MariaDB, MongoDB, RabbitMQ etc. with one click
forbes 30 under 30
Need motivation ? Check out these 2 awesome “FORBES 30 under 30” lists (web, UI, games)

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