Site icon Coding is Love

Backend for frontend developers: BaaS

Backend as a service( or BaaS) is a kind of service that lets developers ease the process of developing a backend. It is a cloud-based service that provides developers with a ready-to-use database, a notification system, automated oAuth system etc.

There services are becoming very popular these days. A good example of such a service is Firebase by Google. So in this article, we are going to talk about how Firebase can make the lives of front-end developers easier and also help in quickly prototyping an idea and building a working demo.

The main features of Firebase include a real-time database, authentication, storage, hosting and much more. these features can easily be managed with the help of Firebase console.

Summary of some of the features:

Firebase provides SDKs for a lot of different languages. The JavaScript SDK it provides is so easy and fun to use. Especially with the real-time database, the website/web app can be made dynamic very easily.

The database doesn’t just allow you to fetch data, but it also provides a listener that fires when any modification is made to the database. This is really cool since it is very difficult to do that also from scratch.

I personally like using a combination of JavaScript and Firebase in hackathons as it helps you rapidly implement the idea that is in your mind. This helped me secure the 2nd place in 2 hackathons where I built very lite web apps.

Since most of the work happens on the client side with JavaScript, the data transfer to and from the cloud is very less. So the required bandwidth is also less. Also, it works flawlessly in a 2g connection.

Now for some sample code:

Resource for learning:

The best resource for learning to use Firebase is the playlist on Firebase on the web by the official Firebase channel.

Really amazing a disruptive tech can be built with these kinds of services. Although it may not be too stable for use in production, it can definitely be a rapid prototyping tool. So what will you build with firebase or any other “Backend as a service”? Let me know in the comments.

Exit mobile version