# mysite-server-nest **Repository Path**: helloFGQ/mysite-server-nest ## Basic Information - **Project Name**: mysite-server-nest - **Description**: nestjs重构 mysite服务端 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-08-17 - **Last Updated**: 2025-08-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

Nest Logo

[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456 [circleci-url]: https://circleci.com/gh/nestjs/nest

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Discord Backers on Open Collective Sponsors on Open Collective Donate us Support us Follow us on Twitter

## Description [Nest](https://github.com/nestjs/nest) framework TypeScript starter repository. ## Project setup ```bash $ pnpm install ``` ## Compile and run the project ```bash # development $ pnpm run start # watch mode $ pnpm run start:dev # production mode $ pnpm run start:prod ``` ## License Nest is [MIT licensed](https://github.com/nestjs/nest/blob/master/LICENSE). # 开始 执行nest generate -h命令,可以查看相关命令· nest generate:用于生成各种模块代码,比如Module、Controller、Service、Pipe、Middleware等 # 安装依赖 pnpm add prisma-binding @prisma/client mockjs @nestjs/config class-validator class-transformer argon2 @nestjs/passport passport passport-local @nestjs/jwt passport-jwt lodash multer dayjs express pnpm add -D prisma typescript @types/node @types/mockjs @nestjs/mapped-types @types/passport-local @types/passport-jwt @types/express @types/lodash @types/multer # 配置 prisma npx prisma (查看命令) npx prisma init (初始化,生成prisma 配置文件,生成.env 文件) npx prisma migrate reset(一键清库+重建,仅限开发 / 测试) 具体做了什么 Drop 数据库(或 schema / SQLite 文件) 相当于 DROP DATABASE,所有表和数据全部清空 。 Create 新数据库 / 文件 用同名空库重新开始。 Apply 所有迁移 按顺序把 prisma/migrations 里的 SQL 重新跑一遍,表结构回到最新。 运行种子脚本 如果 prisma/seed.js(ts) 存在,自动插入初始数据 。 重新生成 Prisma Client 保证代码与表结构同步。