资料库
后端开发
NestJS
Nest.js:A Progressive Node.js Framework

Nest.js: A Progressive Node.js Framework

1. Introduction

  • Topics discussed
    • Nest CLI
    • Dependency Injection
    • Authentication
    • ORM
    • REST API
    • WebSockets
    • Microservices
    • GraphQL
    • Routing
    • Nest specific tools
    • OpenAPI (Swagger)
    • Command Query Responsibility Segregation (CQRS)
    • Testing
    • Server-side rendering with Angular Universal

2. Overview

  • Controllers
  • Providers
  • Modules
  • Bootstrapping
  • Middleware
  • Guards

3. Nest.js authentication

  • Passport
    • Manual implementation
    • Nest.js passport package

4. Dependency Injection system of Nest.js

  • Overview of Dependency Injection
  • Nest.js Dependency Injection
  • The difference between Nest.js and Angular DI

5. TypeORM

  • What database to use
  • Getting started
  • Modelling our data
  • Using our models
  • Improving our models
  • Relationships between data models
  • Other kinds of relationships
  • Advanced TypeORM

6. Sequelize

  • Configure Sequelize
  • Create a model
  • Injecting a model into a service
  • Usage of Sequelize transaction
  • Migration

7. Mongoose

  • A word about MongoDB
  • A word about Mongoose
  • Getting started
  • Modelling our data
  • Using the schema
  • The first requests
  • Relationships

8. Web sockets

  • WebSocketGateway
  • Gateways
  • Authentication
  • Adapter
  • Client side

9. Microservices

  • Server bootstrap
  • Configuration
  • First microservice handler
  • Sending data
  • Exception filters
  • Pipes
  • Guards
  • Interceptors
  • Built-in transports
  • Custom transport
  • Hybrid application
  • Advanced architecture design

10. Routing and request handling in Nest.js

  • Request handlers
  • Generating responses
  • Route parameters
  • Request body
  • Request object
  • Asynchronous handlers
  • Error responses

11. OpenAPI (Swagger) Specification

  • Document Settings
  • Swagger UI
  • API input decorators
  • API request and response decorators
  • API metadata decorators
  • Saving the swagger document

12. Command Query Responsibility Separation (CQRS)

  • Entry module commands
  • Linking keywords with events
  • Retrieving keywords APIs
  • Linking keywords with sagas

13. Architecture

  • Style guide of naming conventions
  • Directory structure

14. Testing

  • Unit testing
  • E2E testing

15. Server-side Rendering with Angular Universal

  • Serving the Angular Universal App with Nest.js
  • Building and running the Universal App