- Регистрация
- 1 Мар 2015
- Сообщения
- 1,481
- Баллы
- 155
Native (Installed by Default)
@nestjs/core
@nestjs/common
@nestjs/platform-express (or @nestjs/platform-fastify older versions)
rxjs
reflect-metadata
Core Functionality & Utilities
npm install --save @nestjs/config
npm install --save @nestjs/mapped-types
npm install --save class-validator
npm install --save class-transformer
npm install --save joi
API Documentation
npm install --save @nestjs/swagger
npm install --save swagger-ui-express
Data Management (Choose one or more based on your database)
Relational Databases (TypeORM)
npm install --save @nestjs/typeorm
npm install --save typeorm
npm install --save pg # PostgreSQL
npm install --save mysql2 # MySQL
npm install --save sqlite3 # SQLite
npm install --save oracledb # Oracle
npm install --save mssql # SQL Server
NoSQL Databases (Mongoose)
npm install --save @nestjs/mongoose
npm install --save mongoose
Authentication & Authorization
npm install --save @nestjs/jwt
npm install --save @nestjs/passport
npm install --save passport
npm install --save passport-jwt
npm install --save passport-local
npm install --save bcrypt
GraphQL
npm install --save @nestjs/graphql
npm install --save /server # Apollo Server v4 (Recommended)
npm install --save apollo-server-express # Apollo Server v3 (Legacy)
npm install --save graphql
WebSockets
npm install --save @nestjs/websockets
npm install --save ws # For the underlying WebSocket implementation
npm install --save @nestjs/platform-socket.io # If using Socket.IO
Inter-Service Communication (Choose based on your strategy)
NestJS Microservices Core
npm install --save @nestjs/microservices
Transport Layers
npm install --save @nestjs/platform-socket.io # For Socket.IO based microservices
npm install --save redis # For Redis transport
npm install --save cache-manager
npm install --save @nestjs/cache-manager
npm install --save ioredis # Recommended Redis client
npm install --save amqplib # For RabbitMQ transport
npm install --save nats # For NATS transport
npm install --save kafkajs # For Kafka transport
npm install --save @grpc/grpc-js # For gRPC
npm install --save protobufjs # Required for gRPC
Observability & Monitoring
npm install --save @nestjs/terminus
npm install --save @nestjs/prometheus
npm install --save prom-client
npm install --save @nestjs/throttler
npm install --save helmet
npm install --save cors
npm install --save @nestjs/schedule
npm install --save winston
npm install --save pino
Testing (Development Dependencies)
npm install --save-dev @nestjs/testing
npm install --save-dev jest
npm install --save-dev ts-jest
npm install --save-dev supertest
npm install --save-dev @types/jest
npm install --save-dev @types/node
Development Tools (Development Dependencies)
npm install --save-dev @nestjs/cli
npm install --save-dev prettier
npm install --save-dev eslint
npm install --save-dev @typescript-eslint/eslint-plugin
npm install --save-dev @typescript-eslint/parser
npm install --save-dev eslint-config-prettier
npm install --save-dev eslint-plugin-prettier
npm install --save-dev eslint-plugin-import
npm install --save-dev eslint-plugin-unused-imports
npm install --save-dev rimraf
npm install --save-dev concurrently
npm install --save-dev nodemon
npm install --save-dev dotenv
npm install --save-dev @nestjs/schematics
npm install --save-dev run-script-webpack
npm install --save-dev webpack
npm install --save-dev webpack-cli
npm install --save-dev webpack-node-externals
npm install --save-dev source-map-support
npm install --save-dev ts-loader
npm install --save-dev fork-ts-checker-webpack-plugin
npm install --save-dev husky
npm install --save-dev lint-staged
npm install --save-dev commitizen
npm install --save-dev cz-conventional-changelog
npm install --save-dev semantic-release
npm install --save-dev @semantic-release/commit-analyzer
npm install --save-dev @semantic-release/release-notes-generator
npm install --save-dev @semantic-release/changelog
npm install --save-dev @semantic-release/git
npm install --save-dev @semantic-release/npm
npm install --save-dev npm-run-all
npm install --save-dev cross-env
Optional Integrations & Features
npm install --save-dev fastify-adapter # Alternative HTTP platform
npm install --save-dev @nestjs/serve-static # Serving static files
npm install --save-dev typeorm-naming-strategies # Custom naming strategies for TypeORM
npm install --save-dev nestjs-paginate # Pagination for APIs
npm install --save-dev cache-manager-redis-store # Redis store for cache-manager
npm install --save-dev nestjs-bull # Background job processing with Bull
npm install --save-dev bull # Underlying Bull library
npm install --save-dev @nestjs/cqrs # Command Query Responsibility Segregation
npm install --save-dev nestjs-event-store # Event Sourcing
npm install --save-dev @nestjs/platform-ws # Native WebSockets platform
npm install --save-dev graphql-tools # GraphQL utility library
npm install --save-dev graphql-subscriptions # GraphQL Subscriptions
npm install --save-dev apollo-server-express # Apollo Server v2 (Legacy)
npm install --save-dev nestjs-i18n # Internationalization
npm install --save-dev nest-morgan # HTTP request logging with Morgan
npm install --save-dev morgan # Underlying Morgan library
npm install --save-dev compression # Response compression middleware
@nestjs/core
@nestjs/common
@nestjs/platform-express (or @nestjs/platform-fastify older versions)
rxjs
reflect-metadata
Core Functionality & Utilities
npm install --save @nestjs/config
npm install --save @nestjs/mapped-types
npm install --save class-validator
npm install --save class-transformer
npm install --save joi
API Documentation
npm install --save @nestjs/swagger
npm install --save swagger-ui-express
Data Management (Choose one or more based on your database)
Relational Databases (TypeORM)
npm install --save @nestjs/typeorm
npm install --save typeorm
npm install --save pg # PostgreSQL
npm install --save mysql2 # MySQL
npm install --save sqlite3 # SQLite
npm install --save oracledb # Oracle
npm install --save mssql # SQL Server
NoSQL Databases (Mongoose)
npm install --save @nestjs/mongoose
npm install --save mongoose
Authentication & Authorization
npm install --save @nestjs/jwt
npm install --save @nestjs/passport
npm install --save passport
npm install --save passport-jwt
npm install --save passport-local
npm install --save bcrypt
GraphQL
npm install --save @nestjs/graphql
npm install --save /server # Apollo Server v4 (Recommended)
npm install --save apollo-server-express # Apollo Server v3 (Legacy)
npm install --save graphql
WebSockets
npm install --save @nestjs/websockets
npm install --save ws # For the underlying WebSocket implementation
npm install --save @nestjs/platform-socket.io # If using Socket.IO
Inter-Service Communication (Choose based on your strategy)
NestJS Microservices Core
npm install --save @nestjs/microservices
Transport Layers
npm install --save @nestjs/platform-socket.io # For Socket.IO based microservices
npm install --save redis # For Redis transport
npm install --save cache-manager
npm install --save @nestjs/cache-manager
npm install --save ioredis # Recommended Redis client
npm install --save amqplib # For RabbitMQ transport
npm install --save nats # For NATS transport
npm install --save kafkajs # For Kafka transport
npm install --save @grpc/grpc-js # For gRPC
npm install --save protobufjs # Required for gRPC
Observability & Monitoring
npm install --save @nestjs/terminus
npm install --save @nestjs/prometheus
npm install --save prom-client
npm install --save @nestjs/throttler
npm install --save helmet
npm install --save cors
npm install --save @nestjs/schedule
npm install --save winston
npm install --save pino
Testing (Development Dependencies)
npm install --save-dev @nestjs/testing
npm install --save-dev jest
npm install --save-dev ts-jest
npm install --save-dev supertest
npm install --save-dev @types/jest
npm install --save-dev @types/node
Development Tools (Development Dependencies)
npm install --save-dev @nestjs/cli
npm install --save-dev prettier
npm install --save-dev eslint
npm install --save-dev @typescript-eslint/eslint-plugin
npm install --save-dev @typescript-eslint/parser
npm install --save-dev eslint-config-prettier
npm install --save-dev eslint-plugin-prettier
npm install --save-dev eslint-plugin-import
npm install --save-dev eslint-plugin-unused-imports
npm install --save-dev rimraf
npm install --save-dev concurrently
npm install --save-dev nodemon
npm install --save-dev dotenv
npm install --save-dev @nestjs/schematics
npm install --save-dev run-script-webpack
npm install --save-dev webpack
npm install --save-dev webpack-cli
npm install --save-dev webpack-node-externals
npm install --save-dev source-map-support
npm install --save-dev ts-loader
npm install --save-dev fork-ts-checker-webpack-plugin
npm install --save-dev husky
npm install --save-dev lint-staged
npm install --save-dev commitizen
npm install --save-dev cz-conventional-changelog
npm install --save-dev semantic-release
npm install --save-dev @semantic-release/commit-analyzer
npm install --save-dev @semantic-release/release-notes-generator
npm install --save-dev @semantic-release/changelog
npm install --save-dev @semantic-release/git
npm install --save-dev @semantic-release/npm
npm install --save-dev npm-run-all
npm install --save-dev cross-env
Optional Integrations & Features
npm install --save-dev fastify-adapter # Alternative HTTP platform
npm install --save-dev @nestjs/serve-static # Serving static files
npm install --save-dev typeorm-naming-strategies # Custom naming strategies for TypeORM
npm install --save-dev nestjs-paginate # Pagination for APIs
npm install --save-dev cache-manager-redis-store # Redis store for cache-manager
npm install --save-dev nestjs-bull # Background job processing with Bull
npm install --save-dev bull # Underlying Bull library
npm install --save-dev @nestjs/cqrs # Command Query Responsibility Segregation
npm install --save-dev nestjs-event-store # Event Sourcing
npm install --save-dev @nestjs/platform-ws # Native WebSockets platform
npm install --save-dev graphql-tools # GraphQL utility library
npm install --save-dev graphql-subscriptions # GraphQL Subscriptions
npm install --save-dev apollo-server-express # Apollo Server v2 (Legacy)
npm install --save-dev nestjs-i18n # Internationalization
npm install --save-dev nest-morgan # HTTP request logging with Morgan
npm install --save-dev morgan # Underlying Morgan library
npm install --save-dev compression # Response compression middleware