in around seven minutes

David Guijarro

JavaScript person at

 

Nest?

🛏🔥💦

One-oh-one

  • Node.js framework
  • Main use case: RESTful API's
  • TypeScript
  • Decorators everywhere
  • Express under the hood
    (or Express-compatible libraries
    like Fastify)
  • Requires node.js >= 8.9.0
  • CLI for fast scaffolding
  • Authored by Kamil Myśliwiec

Services

  • Data model
  • Persistance
  • External requests
  • (...)

Controllers

  • Receive requests from client
  • Define endpoints & methods
  • Use services

Modules

  • Group code (by functionality, for example)
  • At least one root module
    (AppModule)

More pieces

Pipes

e.g. for request validation

Exceptions

for error handling

Guards

for authorization

Interceptors

for manipulating requests and responses

TypeORM

  • Decorators everywhere
  • Works with MySQL, Postgres, Oracle...

What else?

  • Mongoose
  • GraphQL
  • Microservices
    (with Redis Pub/Sub, MQTT...)
  • Websockets
  • ...

okthanksbye!

@davguij

Nest in around seven minutes

By David Guijarro

Nest in around seven minutes

  • 220