# nestjs-framework **Repository Path**: WS0119/nestjs-framework ## Basic Information - **Project Name**: nestjs-framework - **Description**: nodejs框架nestjs,类java spring 架构 - **Primary Language**: TypeScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-10-31 - **Last Updated**: 2024-11-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## Description [Nest中文官网](https://docs.nestjs.cn/) nestjs中文官网地址. ## Installation ```bash $ npm install ``` ## Running the app ```bash # development $ npm run start # watch mode $ npm run start:dev # production mode $ npm run start:prod ``` ## Test ```bash # unit tests $ npm run test # e2e tests $ npm run test:e2e # test coverage $ npm run test:cov ``` ## Support Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support). ## Nestjs 框架信息 - Author - [Kamil Myśliwiec](https://twitter.com/kammysliwiec) - Website - [https://nestjs.com](https://nestjs.com/) - Twitter - [@nestframework](https://twitter.com/nestframework) ## License Nest is [MIT licensed](https://github.com/nestjs/nest/blob/master/LICENSE). ===== ## 数据库配置方式:ormconfig.json ```json ormconfig.json { "type": "mysql", "host": "127.0.0.1", "port": 3306, "username": "root", "password": "123456", "database": "blog", "entities": ["dist/**/*.entity{.ts,.js}"], "synchronize": true } ``` ## 解决数据库数据插入乱码问题 ```sql -- 修改数据库字符集 ALTER DATABASE blog DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; -- 修改数据表字符集 ALTER TABLE blog.user CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci; ```