ChelesteWang / FE-Review

前端知识复盘与整理
Apache License 2.0
31 stars 8 forks source link

Nest 实践 #17

Open ChelesteWang opened 2 years ago

ChelesteWang commented 2 years ago

Nest.js admin

基于 React 的 admin https://github.com/SoftwareBrothers/adminjs/raw/master/docs/anim.gif https://github.com/SoftwareBrothers/adminjs

ChelesteWang commented 2 years ago

nest 应该以模块为单位

src                             
├─ app                          
│  ├─ app.controller.spec.ts    
│  ├─ app.controller.ts         
│  ├─ app.e2e-spec.ts           
│  ├─ app.module.ts             
│  └─ app.service.ts            
├─ config                       
│  ├─ index.ts                  
│  └─ typeorm.config.ts         
├─ order                        
│  ├─ order.controller.spec.ts  
│  ├─ order.controller.ts       
│  ├─ order.module.ts           
│  ├─ order.service.spec.ts     
│  └─ order.service.ts          
└─ main.ts