If you are using serverless to build your backend probably you heard about Firebase cloud functions. firebase provide us to a very easy way to build and deploy our backend using Nodejs using javascript or typescript. In this article, I’m going to show you what are the different function types we can use in firebase to build our backends easily.

Pre-Requirements

firebase account, Nodejs Installed on your computer, Firebase tools install as global using node js

Types fo Firebase Cloud Functions

Normal Functions (REST Apis)

Authentication Triggers (Trigger when new user signup using firebase authentication)

Storage Triggers (Trigger when storage updates)

Firestore Triggers (Trigger when firestore…


A software license is a document that provides legally binding guidelines for the use and distribution of software.

Software licenses typically provide end-users with the right to one or more copies of the software without violating copyrights. The license also defines the responsibilities of the parties entering into the license agreement and may impose restrictions on how the software can be used. Software licensing terms and conditions usually include fair use of the software, the limitations of liability, warranties, and disclaimers, and protections if the software or its use infringes on the intellectual property rights of others.

Software licenses typically…


A whistleblower could be any form of a person or from any form of profession. They could be an employee, supplier, or contractor of a company or government institution who opts to disclose information to the public regarding wrongdoings of the institution. Such wrongdoings maybe corruption, fraud, or any other malicious activity which causes harm to the public.

A whistleblower has the characteristics of sharing their perspective on any wrongdoing happening in the company or within a specific department of the company. There are laws to protect whistleblowers from losing their job or getting mistreated. There is a process for…


What is Deno, and what are its main features?

Deno is a runtime for JavaScript and TypeScript that is based on the V8 JavaScript engine and the Rust programming language. It was created by Ryan Dahl, the original creator of Node. js, and is focused on security and productivity.

It was built with:

  • Rust (Deno’s core was written in Rust, Node’s in C++)
  • Tokio (the event loop written in Rust)
  • TypeScript (Deno supports both JavaScript and TypeScript out of the box)
  • V8 (Google’s JavaScript runtime used in Chrome and Node, among others)

Still, Deno is under development and it has lots of bugs. But we can build simple REST…


In this tutorial, I’m going to show you build your own Youtube video downloader using python (cmd app). And this is a very fun project.

To start with this project first you need to install python3 in your computer and also a text editor or IDE ( vs code, pycharm ). To build this app we use pytube library. you can check this library here. To install this library open your cmd and type and press pip install pytube. And also we are using virtualenv here so we need to install that too. pip inatall virtualenv

Now Environment setup is…


What you’ll need?

  • Python (I’m using Python 3.6.4)
  • Pip for installing dependencies
  • Virtualenv
  • A Gmail account ( Without two-step verification and allow unsafe apps)

First Go to your Project Folder and Open Terminal on that folder and type virtualenv venv and this will create a virtual environment to our project. Then we need to activate virtualenv, if you are using Mac or Linux you can activate by type source env/bin/activate in the terminal. If you are using windows type source env/scripts/activate.

Then We need to install Flask-Mail.

To do that in terminal type pip install Flask-Mail.


In this article, I’m going to show you how to build a real-time simple chat app using react, flask and socket.Io libraries. React is JavaScript Library and Flask is python Library. I use React as my client-side and flask as my server-side. And I used socket.Io to make my app Real-Time.

First I’m Going To Build Server-Side part using flask.

First, you need to install python 3 on your computer or if you did not click here and download and install the latest version of python 3. After that, you need to install flask and virtualenv son your computer. …


Python is one of the most popular Programming Language. There are many frameworks and libraries in python. Flask is one of them. In this article, I’m going to show you how to build a simple RESTful API using Flask.

Before start, you need to install python 3 on your computer. You can download and install python 3 by clicking here. After that, you can verify that by type python — version on your terminal or cmd in windows.

To build Flask App First we need to install Flask by type pip install flask in terminal and press enter. …


If you want to build real-time apps ( In this time I’m talking about mobile ) you have multiple options. Firebase, WebSocket, socket.io, pusher, etc… Firebase is the easiest way. But the firebase way is not very customizable. And Websocket sometimes gives firewall errors and some other errors. And pusher is a Service so sometimes we need to pay for it. So the best solution I found is a Socket.io. It is very easy to use and we can customize as we want.

So is this time I will implement the connection between flutter and Nodejs. …


If we want to use Nodejs(express) as our backend default way to use javascript. But using the default way we can’t use es6 syntax. To use es6 syntax we can use babel or typescript. In this case, I’m going to show you how to user typescript with node.

The first thing we need to do is install a typescript compiler globally on our local machine. To install that we need to open our terminal (windows cmd) and type sudo npm install -g typescript ts-node and press enter. If you’re using windows npm install -g typescript ts-node and press enter.

Then…

Hasitha Chandula

Full Stack Engineer Node (Express/Nestjs) | MARN | MEVN | MEAN |React-Native| Serverless |

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store