github.com/SeijiV13
Technical Lead, Frontier Software Asia Philippines
Trainer, RakSquad
Auth0 Ambassador
Community Lead, AngularPH,
seijivillafranca.com
Programming Language for the Web
Makes Web Pages Interactive
Can Validate Data
Without it, Pages our just Pages!
Well... Javascript is basically for Interacting with the UI
Developed in 10 Days
Brendan Eich, September 1995
Mocha
LiveScript
JavaScript
Don't be confused they are not related to each other!
JavaScript is called JavaScript for marketing strategies
Refrence: https://codeburst.io/javascript-trends-in-2020-b194bebc5ef8
Uses NodeJS on Azure Cloud Platform
Internet of Things (IoT)
Microsoft
Front End is Pure JavaScript
Developed KrakenJS (own version of express)
Gmail Web Client, Google Docs
Has own JS Framework AngularJS, Angular
Developed V8 for Chrome which is the heart of Node JS
Seeing JavaScript for the first time
Prototypes
Dynamic Types
Generics
Interfaces
Types
class Student {
fullName: string;
constructor(public firstName: string, public middleInitial: string,
public lastName: string) {
this.fullName = firstName + " " + middleInitial + " " + lastName;
}
}
interface Person {
firstName: string;
lastName: string;
}
let user = new Student("Jane", "A", "Doe");Transpiler
Target: ES6/ES5
Browsers don't understand Typescript
https://www.typescriptlang.org/community
Mobile Apps
Desktop Apps
An open-source, cross-platform, back-end JavaScript runtime environment that runs on the V8 engine
Backend
has the capability to create Rest APIs and GraphQL and connect with databases
Node.js Backend
Client calls an endpoint
node gets data from database
Node sends back to client
Node retrieves data
Cost-effective
High-performance
Easy to Learn
Building Cross-Platform Applications
Different frameworks are created for node to introduce standards and improve maintainability
Back End Node Framework
Typescript Based
Shares many concepts with Angular that's why its called the perfect match
https://nestjs.com/
Module
Controllers
Providers
use of to organize the application structure.
responsible for handling incoming requests and returning responses
it can inject dependencies; this means objects can create various relationships with each other
npm install –g @nest/cli
https://nodejs.org/en/
Check npm verision
Check npm verision
npm -v
nest --version
Install Nest CLI
Install Node JS
Create a new Nest JS Project
nest new <project-name>