Skip to Content
GuidesGenerated Files

Generated Files

When you run resource generation, NeatNode creates a complete feature slice instead of a single isolated file.


Visual Tree

src/ ├── controllers/ │ └── user.controller.js ├── services/ │ └── user.service.js ├── routes/ │ └── user.route.js ├── validations/ │ └── user.validation.js └── models/ └── user.model.js

In modular templates, these files live under src/modules/<resource>/ instead of the top-level layer folders.


File Roles

FileResponsibility
ControllerHandles requests and sends responses.
ServiceHolds business logic and orchestration.
RouteDefines the Express endpoints.
ValidationValidates incoming payloads and params.
ModelRepresents the database entity or schema.

What Changes Automatically

  • The new route gets registered in the central route index
  • Required imports are updated for the generated feature
  • The resource is scaffolded with the template’s existing architecture rules

Why It Helps

The generated structure keeps each feature predictable and easy to extend, while still fitting cleanly into the template architecture you started with.