SlideShare a Scribd company logo
Create API's Node.js with
TypeScript
Thiago da Silva Adriano
Project
Packages
Dependencies
▷ Body-parser
▷ http-status
▷ Express
▷ JWT
▷ Mongoose
▷ Morgan
▷ Multer
▷ Nodemon
https://github.com/programadriano/ts-api-generator
“
Band   criando api nodejs com type script
Structure
APPServer
Controller
Repository
Schema
Config
DIST
{
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"outDir": "dist",
"typeRoots":
["../node_modules/@types"],
"types": ["node"]
},
"include": ["server/**/*.ts",
"server/*.ts"],
"exclude": ["node_modules"],
"buildOnSave": true,
"compileOnSave": true
}
Node.js
Band   criando api nodejs com type script
Band   criando api nodejs com type script
TypeScript
What is
TypeScript?
• TypeScript is a typed superset of JavaScript
that
compiles to plain JavaScript
• Any browser. Any host. Any OS
• Any valid JavaScript is valid Typescript
How Can I install
TypeScript?
> npm install -g typescript
Anders Hejlsberg
How Does TypeScript
Works?
Transpiling
TypeScript
server.ts
JavaScript
server.js
TypeScript Compiler
“Transpiling”
Band   criando api nodejs com type script
TypeScrip
t
ES201
6
ES201
5 ES5
tsconfig.json
Porque TypeScript com Node?
Band   criando api nodejs com type script
Band   criando api nodejs com type script
Show me the code {
}
Band   criando api nodejs com type script
“
Social Media
/tadriano-net @programadriano
@programadriano /perfil/thiagoadriano/
@programadriano /space/thiago-da-silva-adriano-2

More Related Content

What's hot (20)

PPTX
AKS: Keep your Devs close and your OpsSec closer…
Carlos Mendible
 
PPTX
Future of NodeJS
Sébastien Pertus
 
PDF
GruntJS + Wordpress
Leonardo Balter
 
PPTX
Diving into Node with Express and Mongo
Axilis
 
PPTX
NodeJS
Alok Guha
 
PPTX
Rails with MongoDB - RORLab 47th
Eugene Park
 
KEY
Building HTTP API's with NodeJS and MongoDB
donnfelker
 
PPTX
Introduction to node js
Amit Thakkar
 
PDF
Ruby on Windows (uru/RubyInstaller/Devkit)
Shigeru UCHIYAMA
 
PPTX
Running Node Applications on iOS and Android
ukadakal
 
PPTX
Herramientas front
borya09
 
PDF
SF Grails - Ratpack - Compact Groovy Webapps - James Williams
Philip Stehlik
 
PDF
ModemFrontEndops
microbean
 
PDF
最近 node.js 來勢洶洶, 怎麼辦? 別怕, 我們也有秘密武器 RingoJS!
Liwei Chou
 
KEY
nodecalgary1
Eric Kryski
 
PDF
Devcast node.js e mongo db o casamento perfeito
Suissa
 
PDF
Web technologies for desktop development
Darko Kukovec
 
PDF
MTDDC Tokyo 2011
Six Apart KK
 
PDF
containers-intro
Josef Karásek
 
PDF
Introduction to REST API with Node.js
Yoann Gotthilf
 
AKS: Keep your Devs close and your OpsSec closer…
Carlos Mendible
 
Future of NodeJS
Sébastien Pertus
 
GruntJS + Wordpress
Leonardo Balter
 
Diving into Node with Express and Mongo
Axilis
 
NodeJS
Alok Guha
 
Rails with MongoDB - RORLab 47th
Eugene Park
 
Building HTTP API's with NodeJS and MongoDB
donnfelker
 
Introduction to node js
Amit Thakkar
 
Ruby on Windows (uru/RubyInstaller/Devkit)
Shigeru UCHIYAMA
 
Running Node Applications on iOS and Android
ukadakal
 
Herramientas front
borya09
 
SF Grails - Ratpack - Compact Groovy Webapps - James Williams
Philip Stehlik
 
ModemFrontEndops
microbean
 
最近 node.js 來勢洶洶, 怎麼辦? 別怕, 我們也有秘密武器 RingoJS!
Liwei Chou
 
nodecalgary1
Eric Kryski
 
Devcast node.js e mongo db o casamento perfeito
Suissa
 
Web technologies for desktop development
Darko Kukovec
 
MTDDC Tokyo 2011
Six Apart KK
 
containers-intro
Josef Karásek
 
Introduction to REST API with Node.js
Yoann Gotthilf
 

Similar to Band criando api nodejs com type script (20)

PDF
Node in Production at Aviary
Aviary
 
PDF
Node.js for enterprise - JS Conference
Timur Shemsedinov
 
PDF
Jaap : node, npm & grunt
Bertrand Chevrier
 
PDF
I Just Want to Run My Code: Waypoint, Nomad, and Other Things
Michael Lange
 
PDF
Digital Forensics and Incident Response in The Cloud
Velocidex Enterprises
 
ODP
Intravert Server side processing for Cassandra
Edward Capriolo
 
ODP
NYC* 2013 - "Advanced Data Processing: Beyond Queries and Slices"
DataStax Academy
 
PPTX
Silicon Valley JUG - How to generate customized java 8 code from your database
Speedment, Inc.
 
PPTX
How to generate customized java 8 code from your database
Speedment, Inc.
 
PDF
Declarative Infrastructure Tools
Yulia Shcherbachova
 
PPTX
Webinar: Architecting Secure and Compliant Applications with MongoDB
MongoDB
 
PDF
IstSec'14 - İbrahim BALİÇ - Automated Malware Analysis
BGA Cyber Security
 
PPTX
introduction to node.js
orkaplan
 
PDF
Deno Crate Organization
Anthony Campolo
 
PDF
The Ultimate Node.js Resource Cheat Sheet 📝: Learn Everything Free
Tapp AI
 
PDF
Node azure
Emanuele DelBono
 
PPTX
Troubleshooting .NET Applications on Cloud Foundry
Altoros
 
PDF
15th Athens Big Data Meetup - 1st Talk - Running Spark On Mesos
Athens Big Data
 
PDF
Infrastructure as Code: Manage your Architecture with Git
Danilo Poccia
 
Node in Production at Aviary
Aviary
 
Node.js for enterprise - JS Conference
Timur Shemsedinov
 
Jaap : node, npm & grunt
Bertrand Chevrier
 
I Just Want to Run My Code: Waypoint, Nomad, and Other Things
Michael Lange
 
Digital Forensics and Incident Response in The Cloud
Velocidex Enterprises
 
Intravert Server side processing for Cassandra
Edward Capriolo
 
NYC* 2013 - "Advanced Data Processing: Beyond Queries and Slices"
DataStax Academy
 
Silicon Valley JUG - How to generate customized java 8 code from your database
Speedment, Inc.
 
How to generate customized java 8 code from your database
Speedment, Inc.
 
Declarative Infrastructure Tools
Yulia Shcherbachova
 
Webinar: Architecting Secure and Compliant Applications with MongoDB
MongoDB
 
IstSec'14 - İbrahim BALİÇ - Automated Malware Analysis
BGA Cyber Security
 
introduction to node.js
orkaplan
 
Deno Crate Organization
Anthony Campolo
 
The Ultimate Node.js Resource Cheat Sheet 📝: Learn Everything Free
Tapp AI
 
Node azure
Emanuele DelBono
 
Troubleshooting .NET Applications on Cloud Foundry
Altoros
 
15th Athens Big Data Meetup - 1st Talk - Running Spark On Mesos
Athens Big Data
 
Infrastructure as Code: Manage your Architecture with Git
Danilo Poccia
 
Ad

More from MVP Microsoft (20)

PPTX
Resiliencia em APIs
MVP Microsoft
 
PPTX
Introducao ao GraphQL
MVP Microsoft
 
PPTX
Tdc 2020 Floripa
MVP Microsoft
 
PPTX
Angular DevOps
MVP Microsoft
 
PPTX
TypeScript + Node.js + cosmos db
MVP Microsoft
 
PPTX
Desenvolvimento de games com C# e Unity
MVP Microsoft
 
PPTX
GraphQL com .NET Core
MVP Microsoft
 
PPTX
Novidades do TypeScript
MVP Microsoft
 
PPTX
Novidades do TypeScript para desenvolvedores Angular
MVP Microsoft
 
PPTX
7 masters
MVP Microsoft
 
PPTX
TypeScript 3.4
MVP Microsoft
 
PPTX
Xamarim + api
MVP Microsoft
 
PPTX
Desenvolvendo games de realidade virtual com C# utilizando o Unity
MVP Microsoft
 
PPTX
Mackenzie - TypeScript
MVP Microsoft
 
PPTX
Typescript no fronte no back com Docker
MVP Microsoft
 
PPTX
Angular + asp.net core + docker na nuvem
MVP Microsoft
 
PPTX
JavaScript na nuvem node + angular + microsoft azure
MVP Microsoft
 
PPTX
Vs code + node + angular + azure app service
MVP Microsoft
 
PPTX
Xamarin + node.js
MVP Microsoft
 
PPTX
TypeScript no Back-end e no Front-end
MVP Microsoft
 
Resiliencia em APIs
MVP Microsoft
 
Introducao ao GraphQL
MVP Microsoft
 
Tdc 2020 Floripa
MVP Microsoft
 
Angular DevOps
MVP Microsoft
 
TypeScript + Node.js + cosmos db
MVP Microsoft
 
Desenvolvimento de games com C# e Unity
MVP Microsoft
 
GraphQL com .NET Core
MVP Microsoft
 
Novidades do TypeScript
MVP Microsoft
 
Novidades do TypeScript para desenvolvedores Angular
MVP Microsoft
 
7 masters
MVP Microsoft
 
TypeScript 3.4
MVP Microsoft
 
Xamarim + api
MVP Microsoft
 
Desenvolvendo games de realidade virtual com C# utilizando o Unity
MVP Microsoft
 
Mackenzie - TypeScript
MVP Microsoft
 
Typescript no fronte no back com Docker
MVP Microsoft
 
Angular + asp.net core + docker na nuvem
MVP Microsoft
 
JavaScript na nuvem node + angular + microsoft azure
MVP Microsoft
 
Vs code + node + angular + azure app service
MVP Microsoft
 
Xamarin + node.js
MVP Microsoft
 
TypeScript no Back-end e no Front-end
MVP Microsoft
 
Ad

Recently uploaded (20)

PPTX
Lec15_Mutability Immutability-converted.pptx
khanjahanzaib1
 
PPTX
PE introd.pptxfrgfgfdgfdgfgrtretrt44t444
nepmithibai2024
 
PPTX
Cost_of_Quality_Presentation_Software_Engineering.pptx
farispalayi
 
PPTX
法国巴黎第二大学本科毕业证{Paris 2学费发票Paris 2成绩单}办理方法
Taqyea
 
PPT
Computer Securityyyyyyyy - Chapter 1.ppt
SolomonSB
 
PDF
AI_MOD_1.pdf artificial intelligence notes
shreyarrce
 
PPTX
ONLINE BIRTH CERTIFICATE APPLICATION SYSYTEM PPT.pptx
ShyamasreeDutta
 
PPT
introduction to networking with basics coverage
RamananMuthukrishnan
 
PPTX
一比一原版(SUNY-Albany毕业证)纽约州立大学奥尔巴尼分校毕业证如何办理
Taqyea
 
PPTX
本科硕士学历佛罗里达大学毕业证(UF毕业证书)24小时在线办理
Taqyea
 
PPTX
英国假毕业证诺森比亚大学成绩单GPA修改UNN学生卡网上可查学历成绩单
Taqyea
 
PDF
Apple_Environmental_Progress_Report_2025.pdf
yiukwong
 
PPTX
Research Design - Report on seminar in thesis writing. PPTX
arvielobos1
 
PPTX
Orchestrating things in Angular application
Peter Abraham
 
PPT
Agilent Optoelectronic Solutions for Mobile Application
andreashenniger2
 
PPTX
L1A Season 1 Guide made by A hegy Eng Grammar fixed
toszolder91
 
PDF
𝐁𝐔𝐊𝐓𝐈 𝐊𝐄𝐌𝐄𝐍𝐀𝐍𝐆𝐀𝐍 𝐊𝐈𝐏𝐄𝐑𝟒𝐃 𝐇𝐀𝐑𝐈 𝐈𝐍𝐈 𝟐𝟎𝟐𝟓
hokimamad0
 
PPTX
L1A Season 1 ENGLISH made by A hegy fixed
toszolder91
 
PDF
The-Hidden-Dangers-of-Skipping-Penetration-Testing.pdf.pdf
naksh4thra
 
PPTX
sajflsajfljsdfljslfjslfsdfas;fdsfksadfjlsdflkjslgfs;lfjlsajfl;sajfasfd.pptx
theknightme
 
Lec15_Mutability Immutability-converted.pptx
khanjahanzaib1
 
PE introd.pptxfrgfgfdgfdgfgrtretrt44t444
nepmithibai2024
 
Cost_of_Quality_Presentation_Software_Engineering.pptx
farispalayi
 
法国巴黎第二大学本科毕业证{Paris 2学费发票Paris 2成绩单}办理方法
Taqyea
 
Computer Securityyyyyyyy - Chapter 1.ppt
SolomonSB
 
AI_MOD_1.pdf artificial intelligence notes
shreyarrce
 
ONLINE BIRTH CERTIFICATE APPLICATION SYSYTEM PPT.pptx
ShyamasreeDutta
 
introduction to networking with basics coverage
RamananMuthukrishnan
 
一比一原版(SUNY-Albany毕业证)纽约州立大学奥尔巴尼分校毕业证如何办理
Taqyea
 
本科硕士学历佛罗里达大学毕业证(UF毕业证书)24小时在线办理
Taqyea
 
英国假毕业证诺森比亚大学成绩单GPA修改UNN学生卡网上可查学历成绩单
Taqyea
 
Apple_Environmental_Progress_Report_2025.pdf
yiukwong
 
Research Design - Report on seminar in thesis writing. PPTX
arvielobos1
 
Orchestrating things in Angular application
Peter Abraham
 
Agilent Optoelectronic Solutions for Mobile Application
andreashenniger2
 
L1A Season 1 Guide made by A hegy Eng Grammar fixed
toszolder91
 
𝐁𝐔𝐊𝐓𝐈 𝐊𝐄𝐌𝐄𝐍𝐀𝐍𝐆𝐀𝐍 𝐊𝐈𝐏𝐄𝐑𝟒𝐃 𝐇𝐀𝐑𝐈 𝐈𝐍𝐈 𝟐𝟎𝟐𝟓
hokimamad0
 
L1A Season 1 ENGLISH made by A hegy fixed
toszolder91
 
The-Hidden-Dangers-of-Skipping-Penetration-Testing.pdf.pdf
naksh4thra
 
sajflsajfljsdfljslfjslfsdfas;fdsfksadfjlsdflkjslgfs;lfjlsajfl;sajfasfd.pptx
theknightme
 

Band criando api nodejs com type script