1. What does `nest g resource users` do that `nest g controller users` does not?
- It only creates a service file
- It generates module, controller, service and DTOs together
- It starts the server in watch mode
Show answer
Answer: It generates module, controller, service and DTOs together
`resource` scaffolds the whole feature slice, while `controller` creates only the controller.
Lesson: Setup with NestJS CLI