mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-01-10 04:25:08 +00:00
Updated Academy example data
This commit is contained in:
parent
a6c56518bc
commit
f13120bc01
|
@ -2,148 +2,148 @@ export class AcademyFakeDb
|
||||||
{
|
{
|
||||||
public static courses = [
|
public static courses = [
|
||||||
{
|
{
|
||||||
'id' : '15459251a6d6b397565',
|
'id' : '15459251a6d6b397565',
|
||||||
'title' : 'Basics of Angular',
|
'title' : 'Basics of Angular',
|
||||||
'slug' : 'basics-of-angular',
|
'slug' : 'basics-of-angular',
|
||||||
'category' : 'web',
|
'category': 'web',
|
||||||
'length' : 30,
|
'length' : 30,
|
||||||
'updated' : 'Jun 28, 2017'
|
'updated' : 'Jun 28, 2017'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '154588a0864d2881124',
|
'id' : '154588a0864d2881124',
|
||||||
'title' : 'Basics of TypeScript',
|
'title' : 'Basics of TypeScript',
|
||||||
'slug' : 'basics-of-typeScript',
|
'slug' : 'basics-of-typeScript',
|
||||||
'category' : 'web',
|
'category': 'web',
|
||||||
'length' : 60,
|
'length' : 60,
|
||||||
'updated' : 'Nov 01, 2017'
|
'updated' : 'Nov 01, 2017'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '15453ba60d3baa5daaf',
|
'id' : '15453ba60d3baa5daaf',
|
||||||
'title' : 'Android N: Quick Settings',
|
'title' : 'Android N: Quick Settings',
|
||||||
'slug' : 'android-n-quick-settings',
|
'slug' : 'android-n-quick-settings',
|
||||||
'category' : 'android',
|
'category': 'android',
|
||||||
'length' : 120,
|
'length' : 120,
|
||||||
'updated' : 'Jun 28, 2017'
|
'updated' : 'Jun 28, 2017'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '15453a06c08fb021776',
|
'id' : '15453a06c08fb021776',
|
||||||
'title' : 'Keep Sensitive Data Safe and Private',
|
'title' : 'Keep Sensitive Data Safe and Private',
|
||||||
'slug' : 'keep-sensitive-data-safe-and-private',
|
'slug' : 'keep-sensitive-data-safe-and-private',
|
||||||
'category' : 'android',
|
'category': 'android',
|
||||||
'length' : 45,
|
'length' : 45,
|
||||||
'updated' : 'Jun 28, 2017'
|
'updated' : 'Jun 28, 2017'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '15427f4c1b7f3953234',
|
'id' : '15427f4c1b7f3953234',
|
||||||
'title' : 'Building a gRPC Service with Java',
|
'title' : 'Building a gRPC Service with Java',
|
||||||
'slug' : 'building-a-grpc-service-with-java',
|
'slug' : 'building-a-grpc-service-with-java',
|
||||||
'category' : 'cloud',
|
'category': 'cloud',
|
||||||
'length' : 30,
|
'length' : 30,
|
||||||
'updated' : 'Jun 28, 2017'
|
'updated' : 'Jun 28, 2017'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '1542d75d929a603125',
|
'id' : '1542d75d929a603125',
|
||||||
'title' : 'Build a PWA Using Workbox',
|
'title' : 'Build a PWA Using Workbox',
|
||||||
'slug' : 'build-a-pwa-using-workbox',
|
'slug' : 'build-a-pwa-using-workbox',
|
||||||
'category' : 'web',
|
'category': 'web',
|
||||||
'length' : 120,
|
'length' : 120,
|
||||||
'updated' : 'Jun 28, 2017'
|
'updated' : 'Jun 28, 2017'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '1543ee3a5b43e0f9f45',
|
'id' : '1543ee3a5b43e0f9f45',
|
||||||
'title' : 'Build an App for the Google Assistant with Firebase and Dialogflow',
|
'title' : 'Build an App for the Google Assistant with Firebase and Dialogflow',
|
||||||
'slug' : 'build-an-app-for-the-google-assistant-with-firebase-and-dialogflow',
|
'slug' : 'build-an-app-for-the-google-assistant-with-firebase-and-dialogflow',
|
||||||
'category' : 'firebase',
|
'category': 'firebase',
|
||||||
'length' : 30,
|
'length' : 30,
|
||||||
'updated' : 'Jun 28, 2017'
|
'updated' : 'Jun 28, 2017'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '1543cc4515df3146112',
|
'id' : '1543cc4515df3146112',
|
||||||
'title' : 'Cloud Functions for Firebase',
|
'title' : 'Cloud Functions for Firebase',
|
||||||
'slug' : 'cloud-functions-for-firebase',
|
'slug' : 'cloud-functions-for-firebase',
|
||||||
'category' : 'firebase',
|
'category': 'firebase',
|
||||||
'length' : 45,
|
'length' : 45,
|
||||||
'updated' : 'Jun 28, 2017'
|
'updated' : 'Jun 28, 2017'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '154398a4770d7aaf9a2',
|
'id' : '154398a4770d7aaf9a2',
|
||||||
'title' : 'Manage Your Pivotal Cloud Foundry App\'s Using Apigee Edge',
|
'title' : 'Manage Your Pivotal Cloud Foundry App\'s Using Apigee Edge',
|
||||||
'slug' : 'manage-your-pivotal-cloud-foundry-apps-using-apigee-Edge',
|
'slug' : 'manage-your-pivotal-cloud-foundry-apps-using-apigee-Edge',
|
||||||
'category' : 'cloud',
|
'category': 'cloud',
|
||||||
'length' : 90,
|
'length' : 90,
|
||||||
'updated' : 'Jun 28, 2017'
|
'updated' : 'Jun 28, 2017'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '15438351f87dcd68567',
|
'id' : '15438351f87dcd68567',
|
||||||
'title' : 'Building Beautiful UIs with Flutter',
|
'title' : 'Building Beautiful UIs with Flutter',
|
||||||
'your' : 'building-beautiful-uis-with-flutter',
|
'your' : 'building-beautiful-uis-with-flutter',
|
||||||
'category' : 'web',
|
'category': 'web',
|
||||||
'length' : 90,
|
'length' : 90,
|
||||||
'updated' : 'Jun 28, 2017'
|
'updated' : 'Jun 28, 2017'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '1544e43dcdae6ebf876',
|
'id' : '1544e43dcdae6ebf876',
|
||||||
'title' : 'Cloud Firestore',
|
'title' : 'Cloud Firestore',
|
||||||
'slug' : 'cloud-firestore',
|
'slug' : 'cloud-firestore',
|
||||||
'category' : 'firebase',
|
'category': 'firebase',
|
||||||
'length' : 90,
|
'length' : 90,
|
||||||
'updated' : 'Jun 28, 2017'
|
'updated' : 'Jun 28, 2017'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '1541ca7af66da284177',
|
'id' : '1541ca7af66da284177',
|
||||||
'title' : 'Customize Network Topology with Subnetworks',
|
'title' : 'Customize Network Topology with Subnetworks',
|
||||||
'slug' : 'customize-network-topology-with-subnetworks',
|
'slug' : 'customize-network-topology-with-subnetworks',
|
||||||
'category' : 'web',
|
'category': 'web',
|
||||||
'length' : 45,
|
'length' : 45,
|
||||||
'updated' : 'Jun 28, 2017'
|
'updated' : 'Jun 28, 2017'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '154297167e781781745',
|
'id' : '154297167e781781745',
|
||||||
'title' : 'Looking at Campaign Finance with BigQuery',
|
'title' : 'Looking at Campaign Finance with BigQuery',
|
||||||
'slug' : 'looking-at-campaign-finance-with-bigquery',
|
'slug' : 'looking-at-campaign-finance-with-bigquery',
|
||||||
'category' : 'cloud',
|
'category': 'cloud',
|
||||||
'length' : 60,
|
'length' : 60,
|
||||||
'updated' : 'Jun 28, 2017'
|
'updated' : 'Jun 28, 2017'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '154537435d5b32bf11a',
|
'id' : '154537435d5b32bf11a',
|
||||||
'title' : 'Firebase Android',
|
'title' : 'Firebase Android',
|
||||||
'slug' : 'firebase-android',
|
'slug' : 'firebase-android',
|
||||||
'category' : 'android',
|
'category': 'android',
|
||||||
'length' : 45,
|
'length' : 45,
|
||||||
'updated' : 'Jun 28, 2017'
|
'updated' : 'Jun 28, 2017'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '154204e45a59b168453',
|
'id' : '154204e45a59b168453',
|
||||||
'title' : 'Simulating a Thread Network Using OpenThread',
|
'title' : 'Simulating a Thread Network Using OpenThread',
|
||||||
'slug' : 'simulating-a-thread-network-using-openthread',
|
'slug' : 'simulating-a-thread-network-using-openthread',
|
||||||
'category' : 'web',
|
'category': 'web',
|
||||||
'length' : 45,
|
'length' : 45,
|
||||||
'updated' : 'Jun 28, 2017'
|
'updated' : 'Jun 28, 2017'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '1541dd1e05dfc439216',
|
'id' : '1541dd1e05dfc439216',
|
||||||
'title' : 'Your First Progressive Web App',
|
'title' : 'Your First Progressive Web App',
|
||||||
'slug' : 'your-first-progressive-web-app',
|
'slug' : 'your-first-progressive-web-app',
|
||||||
'category' : 'web',
|
'category': 'web',
|
||||||
'length' : 30,
|
'length' : 30,
|
||||||
'updated' : 'Jun 28, 2017'
|
'updated' : 'Jun 28, 2017'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '1532dfc67e704e48515',
|
'id' : '1532dfc67e704e48515',
|
||||||
'title' : 'Launch Cloud Datalab',
|
'title' : 'Launch Cloud Datalab',
|
||||||
'slug' : 'launch-cloud-datalab',
|
'slug' : 'launch-cloud-datalab',
|
||||||
'category' : 'cloud',
|
'category': 'cloud',
|
||||||
'length' : 60,
|
'length' : 60,
|
||||||
'updated' : 'Jun 28, 2017'
|
'updated' : 'Jun 28, 2017'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'id' : '1542e43dfaae6ebf226',
|
'id' : '1542e43dfaae6ebf226',
|
||||||
'title' : 'Personalize Your iOS App with Firebase User Management',
|
'title' : 'Personalize Your iOS App with Firebase User Management',
|
||||||
'slug' : 'personalize-your-ios-app-with-firebase-user-management',
|
'slug' : 'personalize-your-ios-app-with-firebase-user-management',
|
||||||
'category' : 'firebase',
|
'category': 'firebase',
|
||||||
'length' : 90,
|
'length' : 90,
|
||||||
'updated' : 'Jun 28, 2017'
|
'updated' : 'Jun 28, 2017'
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -173,47 +173,399 @@ export class AcademyFakeDb
|
||||||
private static demoSteps = [
|
private static demoSteps = [
|
||||||
{
|
{
|
||||||
'title' : 'Introduction',
|
'title' : 'Introduction',
|
||||||
'content': '1 Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit <br><br><br> Lorem ipsum dolor sit amet, consectetur adipiscing elit'
|
'content': '<h1>Step 1 - Introduction</h1>' +
|
||||||
|
'<br>' +
|
||||||
|
'This is an example step of the course. You can put anything in here from example codes to videos.' +
|
||||||
|
'<br><br>' +
|
||||||
|
'To install the CLI you need to have installed <b>npm</b> which typically comes with <b>NodeJS</b>.' +
|
||||||
|
'To install or upgrade the CLI run the following <b>npm</b> command:' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<code>npm -g install @angular/cli</code>' +
|
||||||
|
'<br><br>' +
|
||||||
|
'To verify that the CLI has been installed correctly, open a console and run:' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<code>ng version</code>' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<h2>Install dependencies</h2>' +
|
||||||
|
'<br>' +
|
||||||
|
'To moderate the images we\'ll need a few Node.js packages:' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<ul>' +
|
||||||
|
'<li>' +
|
||||||
|
'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.' +
|
||||||
|
'</li>' +
|
||||||
|
'<br>' +
|
||||||
|
'<li>' +
|
||||||
|
'The Google Cloud Storage Client Library for Node.js: @google-cloud/storage to download and upload the images from Cloud Storage.' +
|
||||||
|
'</li>' +
|
||||||
|
'<br>' +
|
||||||
|
'<li>' +
|
||||||
|
'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.' +
|
||||||
|
'</li>' +
|
||||||
|
'</ul>' +
|
||||||
|
'<br>' +
|
||||||
|
'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.' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<code>npm install --save @google-cloud/vision @google-cloud/storage child-process-promise</code>' +
|
||||||
|
'<br><br>' +
|
||||||
|
'This will install the three packages locally and add them as declared dependencies in your package.js file.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'title' : 'Get the sample code',
|
'title' : 'Get the sample code',
|
||||||
'content': '2 Lorem ipsum dolor sit amet, consectetur adipiscing elit'
|
'content': '<h1>Step 2 - Get the sample code</h1>' +
|
||||||
|
'<br>' +
|
||||||
|
'This is an example step of the course. You can put anything in here from example codes to videos.' +
|
||||||
|
'<br><br>' +
|
||||||
|
'To install the CLI you need to have installed <b>npm</b> which typically comes with <b>NodeJS</b>.' +
|
||||||
|
'To install or upgrade the CLI run the following <b>npm</b> command:' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<code>npm -g install @angular/cli</code>' +
|
||||||
|
'<br><br>' +
|
||||||
|
'To verify that the CLI has been installed correctly, open a console and run:' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<code>ng version</code>' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<h2>Install dependencies</h2>' +
|
||||||
|
'<br>' +
|
||||||
|
'To moderate the images we\'ll need a few Node.js packages:' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<ul>' +
|
||||||
|
'<li>' +
|
||||||
|
'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.' +
|
||||||
|
'</li>' +
|
||||||
|
'<br>' +
|
||||||
|
'<li>' +
|
||||||
|
'The Google Cloud Storage Client Library for Node.js: @google-cloud/storage to download and upload the images from Cloud Storage.' +
|
||||||
|
'</li>' +
|
||||||
|
'<br>' +
|
||||||
|
'<li>' +
|
||||||
|
'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.' +
|
||||||
|
'</li>' +
|
||||||
|
'</ul>' +
|
||||||
|
'<br>' +
|
||||||
|
'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.' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<code>npm install --save @google-cloud/vision @google-cloud/storage child-process-promise</code>' +
|
||||||
|
'<br><br>' +
|
||||||
|
'This will install the three packages locally and add them as declared dependencies in your package.js file.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'title' : 'Create a Firebase project and Set up your app',
|
'title' : 'Create a Firebase project and Set up your app',
|
||||||
'content': '3 Lorem ipsum dolor sit amet, consectetur adipiscing elit'
|
'content': '<h1>Step 3 - Create a Firebase project and Set up your app</h1>' +
|
||||||
|
'<br>' +
|
||||||
|
'This is an example step of the course. You can put anything in here from example codes to videos.' +
|
||||||
|
'<br><br>' +
|
||||||
|
'To install the CLI you need to have installed <b>npm</b> which typically comes with <b>NodeJS</b>.' +
|
||||||
|
'To install or upgrade the CLI run the following <b>npm</b> command:' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<code>npm -g install @angular/cli</code>' +
|
||||||
|
'<br><br>' +
|
||||||
|
'To verify that the CLI has been installed correctly, open a console and run:' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<code>ng version</code>' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<h2>Install dependencies</h2>' +
|
||||||
|
'<br>' +
|
||||||
|
'To moderate the images we\'ll need a few Node.js packages:' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<ul>' +
|
||||||
|
'<li>' +
|
||||||
|
'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.' +
|
||||||
|
'</li>' +
|
||||||
|
'<br>' +
|
||||||
|
'<li>' +
|
||||||
|
'The Google Cloud Storage Client Library for Node.js: @google-cloud/storage to download and upload the images from Cloud Storage.' +
|
||||||
|
'</li>' +
|
||||||
|
'<br>' +
|
||||||
|
'<li>' +
|
||||||
|
'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.' +
|
||||||
|
'</li>' +
|
||||||
|
'</ul>' +
|
||||||
|
'<br>' +
|
||||||
|
'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.' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<code>npm install --save @google-cloud/vision @google-cloud/storage child-process-promise</code>' +
|
||||||
|
'<br><br>' +
|
||||||
|
'This will install the three packages locally and add them as declared dependencies in your package.js file.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'title' : 'Install the Firebase Command Line Interface',
|
'title' : 'Install the Firebase Command Line Interface',
|
||||||
'content': '4 Lorem ipsum dolor sit amet, consectetur adipiscing elit'
|
'content': '<h1>Step 4 - Install the Firebase Command Line Interface</h1>' +
|
||||||
|
'<br>' +
|
||||||
|
'This is an example step of the course. You can put anything in here from example codes to videos.' +
|
||||||
|
'<br><br>' +
|
||||||
|
'To install the CLI you need to have installed <b>npm</b> which typically comes with <b>NodeJS</b>.' +
|
||||||
|
'To install or upgrade the CLI run the following <b>npm</b> command:' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<code>npm -g install @angular/cli</code>' +
|
||||||
|
'<br><br>' +
|
||||||
|
'To verify that the CLI has been installed correctly, open a console and run:' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<code>ng version</code>' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<h2>Install dependencies</h2>' +
|
||||||
|
'<br>' +
|
||||||
|
'To moderate the images we\'ll need a few Node.js packages:' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<ul>' +
|
||||||
|
'<li>' +
|
||||||
|
'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.' +
|
||||||
|
'</li>' +
|
||||||
|
'<br>' +
|
||||||
|
'<li>' +
|
||||||
|
'The Google Cloud Storage Client Library for Node.js: @google-cloud/storage to download and upload the images from Cloud Storage.' +
|
||||||
|
'</li>' +
|
||||||
|
'<br>' +
|
||||||
|
'<li>' +
|
||||||
|
'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.' +
|
||||||
|
'</li>' +
|
||||||
|
'</ul>' +
|
||||||
|
'<br>' +
|
||||||
|
'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.' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<code>npm install --save @google-cloud/vision @google-cloud/storage child-process-promise</code>' +
|
||||||
|
'<br><br>' +
|
||||||
|
'This will install the three packages locally and add them as declared dependencies in your package.js file.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'title' : 'Deploy and run the web app',
|
'title' : 'Deploy and run the web app',
|
||||||
'content': '5 Lorem ipsum dolor sit amet, consectetur adipiscing elit'
|
'content': '<h1>Step 5 - Deploy and run the web app</h1>' +
|
||||||
|
'<br>' +
|
||||||
|
'This is an example step of the course. You can put anything in here from example codes to videos.' +
|
||||||
|
'<br><br>' +
|
||||||
|
'To install the CLI you need to have installed <b>npm</b> which typically comes with <b>NodeJS</b>.' +
|
||||||
|
'To install or upgrade the CLI run the following <b>npm</b> command:' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<code>npm -g install @angular/cli</code>' +
|
||||||
|
'<br><br>' +
|
||||||
|
'To verify that the CLI has been installed correctly, open a console and run:' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<code>ng version</code>' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<h2>Install dependencies</h2>' +
|
||||||
|
'<br>' +
|
||||||
|
'To moderate the images we\'ll need a few Node.js packages:' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<ul>' +
|
||||||
|
'<li>' +
|
||||||
|
'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.' +
|
||||||
|
'</li>' +
|
||||||
|
'<br>' +
|
||||||
|
'<li>' +
|
||||||
|
'The Google Cloud Storage Client Library for Node.js: @google-cloud/storage to download and upload the images from Cloud Storage.' +
|
||||||
|
'</li>' +
|
||||||
|
'<br>' +
|
||||||
|
'<li>' +
|
||||||
|
'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.' +
|
||||||
|
'</li>' +
|
||||||
|
'</ul>' +
|
||||||
|
'<br>' +
|
||||||
|
'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.' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<code>npm install --save @google-cloud/vision @google-cloud/storage child-process-promise</code>' +
|
||||||
|
'<br><br>' +
|
||||||
|
'This will install the three packages locally and add them as declared dependencies in your package.js file.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'title' : 'The Functions Directory',
|
'title' : 'The Functions Directory',
|
||||||
'content': '6 Lorem ipsum dolor sit amet, consectetur adipiscing elit'
|
'content': '<h1>Step 6 - The Functions Directory</h1>' +
|
||||||
|
'<br>' +
|
||||||
|
'This is an example step of the course. You can put anything in here from example codes to videos.' +
|
||||||
|
'<br><br>' +
|
||||||
|
'To install the CLI you need to have installed <b>npm</b> which typically comes with <b>NodeJS</b>.' +
|
||||||
|
'To install or upgrade the CLI run the following <b>npm</b> command:' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<code>npm -g install @angular/cli</code>' +
|
||||||
|
'<br><br>' +
|
||||||
|
'To verify that the CLI has been installed correctly, open a console and run:' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<code>ng version</code>' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<h2>Install dependencies</h2>' +
|
||||||
|
'<br>' +
|
||||||
|
'To moderate the images we\'ll need a few Node.js packages:' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<ul>' +
|
||||||
|
'<li>' +
|
||||||
|
'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.' +
|
||||||
|
'</li>' +
|
||||||
|
'<br>' +
|
||||||
|
'<li>' +
|
||||||
|
'The Google Cloud Storage Client Library for Node.js: @google-cloud/storage to download and upload the images from Cloud Storage.' +
|
||||||
|
'</li>' +
|
||||||
|
'<br>' +
|
||||||
|
'<li>' +
|
||||||
|
'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.' +
|
||||||
|
'</li>' +
|
||||||
|
'</ul>' +
|
||||||
|
'<br>' +
|
||||||
|
'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.' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<code>npm install --save @google-cloud/vision @google-cloud/storage child-process-promise</code>' +
|
||||||
|
'<br><br>' +
|
||||||
|
'This will install the three packages locally and add them as declared dependencies in your package.js file.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'title' : 'Import the Cloud Functions and Firebase Admin modules',
|
'title' : 'Import the Cloud Functions and Firebase Admin modules',
|
||||||
'content': '7 Lorem ipsum dolor sit amet, consectetur adipiscing elit'
|
'content': '<h1>Step 7 - Import the Cloud Functions and Firebase Admin modules</h1>' +
|
||||||
|
'<br>' +
|
||||||
|
'This is an example step of the course. You can put anything in here from example codes to videos.' +
|
||||||
|
'<br><br>' +
|
||||||
|
'To install the CLI you need to have installed <b>npm</b> which typically comes with <b>NodeJS</b>.' +
|
||||||
|
'To install or upgrade the CLI run the following <b>npm</b> command:' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<code>npm -g install @angular/cli</code>' +
|
||||||
|
'<br><br>' +
|
||||||
|
'To verify that the CLI has been installed correctly, open a console and run:' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<code>ng version</code>' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<h2>Install dependencies</h2>' +
|
||||||
|
'<br>' +
|
||||||
|
'To moderate the images we\'ll need a few Node.js packages:' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<ul>' +
|
||||||
|
'<li>' +
|
||||||
|
'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.' +
|
||||||
|
'</li>' +
|
||||||
|
'<br>' +
|
||||||
|
'<li>' +
|
||||||
|
'The Google Cloud Storage Client Library for Node.js: @google-cloud/storage to download and upload the images from Cloud Storage.' +
|
||||||
|
'</li>' +
|
||||||
|
'<br>' +
|
||||||
|
'<li>' +
|
||||||
|
'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.' +
|
||||||
|
'</li>' +
|
||||||
|
'</ul>' +
|
||||||
|
'<br>' +
|
||||||
|
'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.' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<code>npm install --save @google-cloud/vision @google-cloud/storage child-process-promise</code>' +
|
||||||
|
'<br><br>' +
|
||||||
|
'This will install the three packages locally and add them as declared dependencies in your package.js file.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'title' : 'Welcome New Users',
|
'title' : 'Welcome New Users',
|
||||||
'content': '8 Lorem ipsum dolor sit amet, consectetur adipiscing elit'
|
'content': '<h1>Step 8 - Welcome New Users</h1>' +
|
||||||
|
'<br>' +
|
||||||
|
'This is an example step of the course. You can put anything in here from example codes to videos.' +
|
||||||
|
'<br><br>' +
|
||||||
|
'To install the CLI you need to have installed <b>npm</b> which typically comes with <b>NodeJS</b>.' +
|
||||||
|
'To install or upgrade the CLI run the following <b>npm</b> command:' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<code>npm -g install @angular/cli</code>' +
|
||||||
|
'<br><br>' +
|
||||||
|
'To verify that the CLI has been installed correctly, open a console and run:' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<code>ng version</code>' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<h2>Install dependencies</h2>' +
|
||||||
|
'<br>' +
|
||||||
|
'To moderate the images we\'ll need a few Node.js packages:' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<ul>' +
|
||||||
|
'<li>' +
|
||||||
|
'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.' +
|
||||||
|
'</li>' +
|
||||||
|
'<br>' +
|
||||||
|
'<li>' +
|
||||||
|
'The Google Cloud Storage Client Library for Node.js: @google-cloud/storage to download and upload the images from Cloud Storage.' +
|
||||||
|
'</li>' +
|
||||||
|
'<br>' +
|
||||||
|
'<li>' +
|
||||||
|
'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.' +
|
||||||
|
'</li>' +
|
||||||
|
'</ul>' +
|
||||||
|
'<br>' +
|
||||||
|
'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.' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<code>npm install --save @google-cloud/vision @google-cloud/storage child-process-promise</code>' +
|
||||||
|
'<br><br>' +
|
||||||
|
'This will install the three packages locally and add them as declared dependencies in your package.js file.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'title' : 'Images moderation',
|
'title' : 'Images moderation',
|
||||||
'content': '9 Lorem ipsum dolor sit amet, consectetur adipiscing elit'
|
'content': '<h1>Step 9 - Images moderation</h1>' +
|
||||||
|
'<br>' +
|
||||||
|
'This is an example step of the course. You can put anything in here from example codes to videos.' +
|
||||||
|
'<br><br>' +
|
||||||
|
'To install the CLI you need to have installed <b>npm</b> which typically comes with <b>NodeJS</b>.' +
|
||||||
|
'To install or upgrade the CLI run the following <b>npm</b> command:' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<code>npm -g install @angular/cli</code>' +
|
||||||
|
'<br><br>' +
|
||||||
|
'To verify that the CLI has been installed correctly, open a console and run:' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<code>ng version</code>' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<h2>Install dependencies</h2>' +
|
||||||
|
'<br>' +
|
||||||
|
'To moderate the images we\'ll need a few Node.js packages:' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<ul>' +
|
||||||
|
'<li>' +
|
||||||
|
'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.' +
|
||||||
|
'</li>' +
|
||||||
|
'<br>' +
|
||||||
|
'<li>' +
|
||||||
|
'The Google Cloud Storage Client Library for Node.js: @google-cloud/storage to download and upload the images from Cloud Storage.' +
|
||||||
|
'</li>' +
|
||||||
|
'<br>' +
|
||||||
|
'<li>' +
|
||||||
|
'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.' +
|
||||||
|
'</li>' +
|
||||||
|
'</ul>' +
|
||||||
|
'<br>' +
|
||||||
|
'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.' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<code>npm install --save @google-cloud/vision @google-cloud/storage child-process-promise</code>' +
|
||||||
|
'<br><br>' +
|
||||||
|
'This will install the three packages locally and add them as declared dependencies in your package.js file.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'title' : 'New Message Notifications',
|
'title' : 'New Message Notifications',
|
||||||
'content': '10 Lorem ipsum dolor sit amet, consectetur adipiscing elit'
|
'content': '<h1>Step 10 - New Message Notifications</h1>' +
|
||||||
|
'<br>' +
|
||||||
|
'This is an example step of the course. You can put anything in here from example codes to videos.' +
|
||||||
|
'<br><br>' +
|
||||||
|
'To install the CLI you need to have installed <b>npm</b> which typically comes with <b>NodeJS</b>.' +
|
||||||
|
'To install or upgrade the CLI run the following <b>npm</b> command:' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<code>npm -g install @angular/cli</code>' +
|
||||||
|
'<br><br>' +
|
||||||
|
'To verify that the CLI has been installed correctly, open a console and run:' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<code>ng version</code>' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<h2>Install dependencies</h2>' +
|
||||||
|
'<br>' +
|
||||||
|
'To moderate the images we\'ll need a few Node.js packages:' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<ul>' +
|
||||||
|
'<li>' +
|
||||||
|
'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.' +
|
||||||
|
'</li>' +
|
||||||
|
'<br>' +
|
||||||
|
'<li>' +
|
||||||
|
'The Google Cloud Storage Client Library for Node.js: @google-cloud/storage to download and upload the images from Cloud Storage.' +
|
||||||
|
'</li>' +
|
||||||
|
'<br>' +
|
||||||
|
'<li>' +
|
||||||
|
'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.' +
|
||||||
|
'</li>' +
|
||||||
|
'</ul>' +
|
||||||
|
'<br>' +
|
||||||
|
'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.' +
|
||||||
|
'<br><br>' +
|
||||||
|
'<code>npm install --save @google-cloud/vision @google-cloud/storage child-process-promise</code>' +
|
||||||
|
'<br><br>' +
|
||||||
|
'This will install the three packages locally and add them as declared dependencies in your package.js file.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'title' : 'Congratulations!',
|
'title' : 'Congratulations!',
|
||||||
'content': '11 Lorem ipsum dolor sit amet, consectetur adipiscing elit'
|
'content': '<h1>Step 11 - Congratulations!</h1>' +
|
||||||
|
'<br>' +
|
||||||
|
'You\'ve built a full-fidelity, offline-capable progressive web app by leveraging the power of reusable Web Components and Firebase. Why bother with a native app when you know how to do all that?!'
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user