How ww-side/structify-backend works
Project type and purpose
• This is a monolithic, server‑side application built on NestJS (a Node.js/TypeScript framework).
• It exposes both REST endpoints (via controllers under src/modules/*/*.controller.ts) and a GraphQL API (via src/modules/gql and view.resolver.ts).
• It implements CRUD operations for domain entities (User, Calendar, Column, Row, RowValue, View, ViewData) plus authentication (JWT) and headers management.
File structure
• Top‑level files: Docker Compose, Nest config (nest‑cli.json), tsconfigs, ESLint/Prettier, .env example, package.json.
• src/app.module.ts: root module that imports all feature modules and configures GraphQL, database, global guards/interceptors.
• src/modules: each folder is a domain module with consistent substructure:
• module.ts – declares controllers/providers
• controller.ts – REST handler
• service.ts – business logic
• entity.ts – TypeORM entity
• (for GraphQL) resolver.ts & input types
• src/modules/database/orm.ts and database.module.ts configure TypeORM.
• src/modules/gql configures Apollo‑style GraphQL server.
• src/shared contains guards (REST/GraphQL auth), interceptors (response formatting), and lib utilities (bcrypt, JWT token utils, validation).
README
• It’s the standard NestJS starter README; confirms use of Nest, pnpm, standard scripts, and points to GraphQL devtools.
Final advice
• Shared/interceptor/guard components near the API entry points
• The result will clearly communicate how requests flow from clients through NestJS modules into the database, reflecting the project’s modular structure and core technologies.