In this tutorial, you will learn how to create a RESTful CRUD (Create, Read, Update, and Delete) API with Laravel that stores its data in a Firebase realtime database.
What is Firebase?
Google Firebase is a Google-backed application development platform that enables developers to develop iOS, Android, and Web-based applications. Firebase provides tools for tracking analytics, reporting and fixing app crashes, creating marketing and product experiments, and much more.
So, without wasting time, let us dive in.
- PHP 7.4, though ideally 8.1.
- Composer installed globally.
- Prior experience with Laravel.
- A text editor such as Visual Studio Code or an IDE such as PhpStorm.
- A Google account.
Install and set up the Laravel application
To begin, you first have to install a Laravel application and run it on your local development machine.
To do that, in your terminal, run the command …
Building applications takes time, there's a lot of work in implementing, testing, debugging and shipping features. Things would be a lot quicker and easier if someone had already built your feature for you. That's what the Firebase team thought and it led them to build the Firebase Extensions platform.
Firebase Extensions are pre-packaged solutions that you install into your Firebase application and that perform tasks when a defined event occurs in your app. The Firebase team publish their own extensions, like this one that resizes images or this one that triggers an email when you add a document to a Cloud Firestore collection (which, by the way, you can configure with your SendGrid credentials). Today we're introducing three new Firebase Extensions that bring the power of Twilio APIs to your Firebase application.
New Twilio Extensions
We're releasing three new extensions to the Firebase Extensions catalogue that will make it quicker …
Christoffer Klemming começou programando marca-passos e acabou se tornando PMM do Google. Ao voltar para casa em Estocolmo, Christoffer se concentrou em escrever códigos. Quando ele cruzou o oceano para ir trabalhar no Google, essa função deixou de ter tanta prioridade. Contudo, ele ainda usou sua mentalidade de programação em um trabalho com uso menos intensivo de código. "A programação é, na verdade, saber como decompor grandes problemas em pedaços menores que podem ser resolvidos logicamente, revertendo para o todo", diz Christoffer.
Com o AngularJS e a Twilio, ele conseguiu decompor e recompor um problema que os residentes da Bay Area conhecem bem: aguardar em filas. Um texto simples pode acabar com o transtorno de ter de ficar em uma fila, esperando que seu nome seja chamado. A empresa de Christoffer, Waitwhile, possibilita que negócios como salões de beleza ou restaurantes enviem uma mensagem de texto para os clientes …
Blazor Server provides support for hosting Razor components on a server in an ASP.NET Core app. At runtime, the Blazor Server app sends UI events from the browser to the server and applies UI updates sent from the server to the rendered component.
Blazor Server is built on SignalR, which is built on websockets. Among things, websockets enable Blazor Server to push changes from the server to the browser at any time. You can build real time UIs when you combine this with a real-time database such as Google Firestore.
Firestore is Google Firebase's real-time database offering on the Google Cloud Platform (GCP). Google provides .NET libraries for interacting with …
Christoffer Klemming started out programming pacemakers and ended up a Google PMM. Back home in Stockholm, Christoffer was focused on writing code. When he crossed the pond to work at Google, code took a backseat. But, he still used his programming mindset in a less code-intensive job. “Programming is really a mindset in how to break down big problems into smaller chunks that each can be logically solved, rolling back up to the whole,” says Christoffer.
Using AngularJS and Twilio helped him break down and roll up a problem that Bay Area residents know well – waiting in lines. A simple text can cut out the hassle of being stuck standing in line, waiting for your name to be called. Christoffer’s company, Waitwhile, allows businesses like beauty salons or restaurants to text waiting customers when they’re ready to serve.
It’s a simple, powerful solution for an annoying problem. MVC …
Web developers have traditionally had a limited choice when it comes to markup tags in HTML. We have basically been limited to what the W3C defines. As web applications become more sophisticated there is a rising need for the ability to create our own tags to represent regions of functionality within them. There are specs currently in process at W3C which aim to address this need. The Custom Elements spec defines a way to create custom tags with their own custom attributes thus creating what are known as web components. Ember has a version of web components it aptly calls Components that are designed to implement the W3C Custom Element spec. Ember Components allow us to create reusable e …
There are many adapters available for Ember Data. One of the easiest to work with is Firebase. With Firebase there’s no need to set up a database so you can get to building your application very quickly. Changes in Firebase data update immediately in your app across all clients viewing that data. As an ad …
Last October Hacker News launched their official API and I’ve been trying to find an excuse to play with it ever since. The idea finally hit me last week: what if I built an application that notified me via SMS whenever someone posted a link to my domain on Hacker News? Hacker News is known to drive a ton of traffic and I probably want to be ready to spin up some extra servers if I end up making it on the front page. If you’ve also been waiting for an excuse to play with the Hacker News API you’re in luck because today I’m going to show you how to build this application using Node.js, Firebase and Twilio SMS.
Who doesn’t love XKCD? I know I do. The comic appeals to us engineers since it draws humor from some of the nerdiest math and science subjects. As much as I love to read XKCD, it frequently gets lost in the many RSS feeds in my reader which means I miss new comics as they are published. When Twilio released support for MMS on US and Canadian phone numbers I thought what better use for MMS than to let me push XKCD comics right to my phone, as soon as they are published.
In this post I’ll show you how I built a simple Node application that lets me deliver XKCD comics to my phone via Twilio MMS. The app allows me to request and receive specific XKCD comics, and have newly published comics automatically sent to my phone.
Want to give it a try? Send a text message …