logo

Course Detail

This Month
$58,356
Last Month
$48,356
Web Designing Course
Introduction

Step 1 - Introduction

This is an example step of the course. You can put anything in here from example codes to videos.

To install the CLI you need to have installed npm which typically comes with NodeJS.To install or upgrade the CLI run the following npm command:

npm -g install @angular/cli

To verify that the CLI has been installed correctly, open a console and run:

ng version

Install dependencies

To moderate the images we'll need a few Node.js packages:

The Google Cloud Vision Client Library for Node.js: @google-cloud/vision to run the image through the Cloud Vision API to detect inappropriate images. The Google Cloud Storage Client Library for Node.js: @google-cloud/storage to download and upload the images from Cloud Storage. A Node.js library allowing us to run processes: child-process-promise to run ImageMagick since the ImageMagick command-line tool comes pre-installed on all Functions instances.

To install these three packages into your Cloud Functions app, run the following npm install --save command. Make sure that you do this from the functions directory.

npm install --save @google-cloud/vision @google-cloud/storage child-process-promise

This will install the three packages locally and add them as declared dependencies in your package.js file.

Get the sample code
Create a Firebase project and Set up your app
Install the Firebase Command Line Interface
Deploy and run the web app
The Functions Directory
Import the Cloud Functions and Firebase Admin modules
Welcome New Users
Images moderation
New Message Notifications
Congratulations!