MCPcopy Index your code
hub / github.com/CatsMiaow/nestjs-project-performance

github.com/CatsMiaow/nestjs-project-performance @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
86 symbols 182 edges 51 files 1 documented · 1%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

nestjs-project-performance

Node.js framework NestJS project for performance

If you focus on the performance or features of the module, you can consider using another module as an alternative in NestJS. \ In this example, the changed modules are as follows.

Configuration

  1. Create a .env file
  2. Rename the .env.sample file to .env to fix it.
  3. Edit env config
    • Edit the file in the config/envs folder.
    • default, development, production, test

Installation

# 1. node_modules
npm ci
# 2. When synchronize database from existing entities
npm run entity:sync
# 2-1. When import entities from an existing database
npm run entity:load

Development

npm run start:dev

Run http://localhost:3000

Test

npm test # exclude e2e
npm run test:e2e # only e2e

Production

# define NODE_ENV and PORT
npm run build
# NODE_ENV=production PORT=8000 node dist/app.js
node dist/app.js

Documentation

# https://docs.nestjs.com/openapi/cli-plugin#swc-builder
# Update the metadata before running the swagger server.
npm run esm bin/generate-metadata.ts
# API, Swagger - src/swagger.ts
npm run doc:api #> http://localhost:8000/api

Implements

Links

Extension points exported contracts — how you extend this code

JwtPayload (Interface)
(no doc)
src/auth/auth.interface.ts
User (Interface)
(no doc)
src/user/user.interface.ts
ProcessEnv (Interface)
(no doc)
typings/global.d.ts
IncomingMessage (Interface)
(no doc)
typings/global.d.ts
FastifyRequest (Interface)
(no doc)
typings/global.d.ts

Core symbols most depended-on inside this repo

create
called by 4
src/sample/sample.service.ts
fetchCategories
called by 2
src/sample/sample.service.ts
catch
called by 2
src/common/exceptions.filter.ts
configuration
called by 2
src/config/configuration.ts
middleware
called by 1
src/app.middleware.ts
bootstrap
called by 1
src/swagger.ts
bootstrap
called by 1
src/app.ts
validateUser
called by 1
src/auth/auth.service.ts

Shape

Class 42
Method 31
Function 8
Interface 5

Languages

TypeScript100%

Modules by API surface

src/sample/sample.service.ts8 symbols
src/sample/sample.controller.ts7 symbols
src/auth/auth.service.ts5 symbols
src/auth/auth.controller.ts5 symbols
src/app.module.ts5 symbols
src/health/health.controller.ts4 symbols
src/common/logger-context.middleware.ts4 symbols
src/common/exceptions.filter.ts4 symbols
src/auth/strategies/local.strategy.ts4 symbols
src/auth/strategies/jwt.strategy.ts4 symbols
typings/global.d.ts3 symbols
src/user/user.service.ts3 symbols

For agents

$ claude mcp add nestjs-project-performance \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact