Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Nest Framework
Search
Daniel Cavalcante
May 25, 2019
Programming
130
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Nest Framework
Exemplo de código:
https://github.com/DanielCavalcante/nest-todo
Daniel Cavalcante
May 25, 2019
Transcript
19 slides
Construindo APIs com Nest Framework
None
Daniel Cavalcante @danielcdesouza
O Nest foi criado para resolver o problema de projetos
arquiteturais do Node.js.
Fornecendo aos projetos uma estrutura modular para organizar o código
Vantagens
Injeção de dependência
Injeção de dependência Cada chamada da rota é async
Injeção de dependência Cada chamada da rota é async Middlewares
usam body-parser
Injeção de dependência Cada chamada da rota é async Middlewares
usam body-parser Tem CLI
Injeção de dependência Cada chamada da rota é async Middlewares
usam body-parser Tem CLI Usa DTOs
Injeção de dependência Cada chamada da rota é async Middlewares
usam body-parser Tem CLI Usa DTOs Facilidade de integração com libs que todo projeto precisa
Injeção de dependência Cada chamada da rota é async Middlewares
usam body-parser Tem CLI Usa DTOs Facilidade de integração com libs que todo projeto precisa Open Source
Primeiros passos
$ npm i -g @nest/cli $ nest new my-app
None
$ nest g module users $ nest g controller users
$ nest g component
Show me the code
Obrigado! @danielcdesouza
More Decks by Daniel Cavalcante
See All by Daniel Cavalcante
Arquiteturas modulares com Node.JS
danielcdesouza
1
85
React Native e GraphQL na construção de mobile apps
danielcdesouza
0
77
"Go" da Alemanha! Sete passos para começar a desenvolver em Go
danielcdesouza
0
100
Novidades do Ruby on Rails 5
danielcdesouza
0
70
Minerando jóias: como extrair o melhor do Ruby
danielcdesouza
0
68
Nos trilhos do Ruby
danielcdesouza
0
70
Conhecendo o AngularJS
danielcdesouza
1
99
Começando com Ruby on Rails
danielcdesouza
0
110
Apresentação sobre Framework VRaptor
danielcdesouza
0
140
Other Decks in Programming
See All in Programming
SONY CISC-NEWS NWS-1750 + NWB-225 ハードウェアメンテとフレームバッファカラー対応 / KOF2026
tsutsui
0
130
How SRE Grew Out of Server-Side Work and Became the Team's Own / サーバサイドから始まったSREを チームに渡すまで
maaaato
0
200
Kotlin Fest 2026: Kotlin コンパイラに Contribute してみよう! - Kotlin/Wasm で深い再帰を書けるようにした話
ternbusty
1
420
Agentic AI with the Power of Jakarta EE
ivargrimstad
0
180
AI駆動開発4年目の現在地(『あなたはFDEになるべきか?』イベント資料)
kumaiu
0
700
flutter_test のその先へ — Flutter アプリの LLM 機能に「評価」という品質保証を
kosukesaigusa
0
210
React Native経験者が Flutterを30⽇間触って驚いたこと
3saito
0
210
AIがコードを書いてくれる時代、我々は何を確かめるのか
yosuke_furukawa
PRO
13
6.2k
AIコーディング時代のKotest ユニットテストから APIレベルの仕様固定化テストへ
ooga04
0
330
AWS CDKを理解するために公式の定義を深掘って解説してみる / Understanding AWS CDK by Digging into Its Official Definition
akihisaikeda
3
330
読みやすい!と評判(?)の発表の準備にかける私のこだわり
shoheimitani
0
160
Kawaiicon: Kubernetes, it's no longer cool, but let's secure it anyway!
barnbarn
0
150
Featured
See All Featured
The World Runs on Bad Software
bkeepers
PRO
72
12k
The browser strikes back
jonoalderson
0
2k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
1
310
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
340
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
Product Roadmaps are Hard
iamctodd
55
13k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.5k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.8k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
470
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.7k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
23k
The Spectacular Lies of Maps
axbom
PRO
1
1.1k