What is Angular?

Angular is a front-end framework brought by Google based on TypeScript

To write apps with Angular you have to first install Angular CLI which will set up a Angular project for you

Install Angular CLI using NPM:

C:\>npm install -g @angular/cli

-g stands for global

Create a new Angular project called helloworld with Angular CLI

C:\>ng new hello-world

Start the Angular server

C:\>ng serve

and open a browser and call http://localhost:4200

An Angular component is basically a TypeScript class. An Angular application ist bronken up into components.

An Angular component has a declaration

Frequently used Keyboard Shortcuts

Open up Developer Tools in Chrome and Firefox
Windows: Ctrl + Shift + I
Mac: Cmd + Option + I

Open up the JavaScript Console
Windows: Ctrl + Shift + J
Mac: Cmd + Option + J

View Page Source Code:
Windows: Ctrl + U
Mac: Cmd + U

Multi-Cursor Editing (Using Multiple Cursors)
Select a word or piece of code
Windows: Ctrl + D
Mac: Cmd + D

What is Node.js?

Node.js is a Runtime Enviroment for executing JavaScript code outside the browser

Node.js is Asynchronous by default. Which means Node.js can handel several requests at the same time

When naming classes in Node.js the first letter of every word in the class name should be uppercase e.g. EventEmmitter. This convention is called Pascal Case (PascalCase) and when naming variables use camelCase e.g. firstName, lastName

Node.js has built-in modules which you can use within your modules.The most frequently used are:

The os module

The fs module

The events module

The http module

Node.js does not have a window object or a document object instead Node.js has a global object

Open a CMD window on Windows or a terminal in Mac OS to see if you have Node.js already installed:

C:\>node –version



Assuming you have these two MySQL tables

You can ask MySQL to show you all customers who has a valid credit card

MySQL output