Nest
A solution to architecture problem in Node
Is built with TypeScript and combines best concepts of OOP (Object Oriented Progamming) FP (Functional Programming) FRP (Functional Reactive Programming)
Nest framework in a very active way encourages developers to try, learn and use some well-known software engineering paradigms,patterns, like:
- Domain Driven Design
- Event Sourcing
- Microservices architecture.
Core Concepts
3 basic application building blocks
- Modules
- Controllers
- Components
Modules
separate concerns of your applications
Controllers
This layer is responsible for handling incoming requests and returning a response to the client.
Components
Everything is a component:
-
Role Service: Some
bussines logic. -
Role Repository: Abstract interaction with
database . Others : Role Factorie, Role Helper.
Entry
More Concepts
- Middlewares
- Pipes
- Interceptors
More Features
- Exception Filters
- Guards
- WebSockets
- Microservices
- Docs integration with SQL, MongoDB, Swagger, CQRS
deck
By Laura Ciro
deck
- 1,033