create-huenei-template 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1355) hide show
  1. package/README.md +132 -0
  2. package/bin/create-huenei-template.js +2 -0
  3. package/dist/config/templates.js +54 -0
  4. package/dist/core/dependency-manager.js +55 -0
  5. package/dist/core/errors.js +43 -0
  6. package/dist/core/file-operations.js +25 -0
  7. package/dist/core/prompts.js +183 -0
  8. package/dist/core/template-resolver.js +18 -0
  9. package/dist/index.js +85 -0
  10. package/dist/templates/backend/.gitkeep +1 -0
  11. package/dist/templates/backend/nestjs-api/.prettierrc +4 -0
  12. package/dist/templates/backend/nestjs-api/README.md +98 -0
  13. package/dist/templates/backend/nestjs-api/eslint.config.mjs +35 -0
  14. package/dist/templates/backend/nestjs-api/nest-cli.json +8 -0
  15. package/dist/templates/backend/nestjs-api/package.json +71 -0
  16. package/dist/templates/backend/nestjs-api/pnpm-lock.yaml +6233 -0
  17. package/dist/templates/backend/nestjs-api/src/app.controller.spec.ts +22 -0
  18. package/dist/templates/backend/nestjs-api/src/app.controller.ts +12 -0
  19. package/dist/templates/backend/nestjs-api/src/app.module.ts +10 -0
  20. package/dist/templates/backend/nestjs-api/src/app.service.ts +8 -0
  21. package/dist/templates/backend/nestjs-api/src/main.ts +8 -0
  22. package/dist/templates/backend/nestjs-api/test/app.e2e-spec.ts +25 -0
  23. package/dist/templates/backend/nestjs-api/test/jest-e2e.json +9 -0
  24. package/dist/templates/backend/nestjs-api/tsconfig.build.json +4 -0
  25. package/dist/templates/backend/nestjs-api/tsconfig.json +25 -0
  26. package/dist/templates/backend/nestjs-api-postgres/.cursor/commands/new-endpoint.md +209 -0
  27. package/dist/templates/backend/nestjs-api-postgres/.cursor/commands/new-model.md +201 -0
  28. package/dist/templates/backend/nestjs-api-postgres/.cursor/rules/api-rest.mdc +126 -0
  29. package/dist/templates/backend/nestjs-api-postgres/.cursor/rules/authentication-security.mdc +86 -0
  30. package/dist/templates/backend/nestjs-api-postgres/.cursor/rules/dto-validation.mdc +93 -0
  31. package/dist/templates/backend/nestjs-api-postgres/.cursor/rules/general-rules.mdc +126 -0
  32. package/dist/templates/backend/nestjs-api-postgres/.cursor/rules/nestjs-architecture.mdc +83 -0
  33. package/dist/templates/backend/nestjs-api-postgres/.cursor/rules/prisma-standards.mdc +90 -0
  34. package/dist/templates/backend/nestjs-api-postgres/.cursor/rules/swagger-documentation.mdc +90 -0
  35. package/dist/templates/backend/nestjs-api-postgres/.cursor/skills/api-security-best-practices/SKILL.md +907 -0
  36. package/dist/templates/backend/nestjs-api-postgres/.cursor/skills/docker-expert/SKILL.md +409 -0
  37. package/dist/templates/backend/nestjs-api-postgres/.cursor/skills/nestjs-expert/SKILL.md +552 -0
  38. package/dist/templates/backend/nestjs-api-postgres/.cursor/skills/nestjs-the-best-practices/AGENTS.md +5958 -0
  39. package/dist/templates/backend/nestjs-api-postgres/.cursor/skills/nestjs-the-best-practices/SKILL.md +130 -0
  40. package/dist/templates/backend/nestjs-api-postgres/.cursor/skills/nodejs-best-practices/SKILL.md +333 -0
  41. package/dist/templates/backend/nestjs-api-postgres/.cursor/skills/postgresql-table-design/SKILL.md +202 -0
  42. package/dist/templates/backend/nestjs-api-postgres/.cursor/skills/prisma-expert/SKILL.md +355 -0
  43. package/dist/templates/backend/nestjs-api-postgres/.dockerignore +50 -0
  44. package/dist/templates/backend/nestjs-api-postgres/.env.example +18 -0
  45. package/dist/templates/backend/nestjs-api-postgres/.env.test +18 -0
  46. package/dist/templates/backend/nestjs-api-postgres/.prettierrc +4 -0
  47. package/dist/templates/backend/nestjs-api-postgres/README.md +1502 -0
  48. package/dist/templates/backend/nestjs-api-postgres/docker-compose.yml +24 -0
  49. package/dist/templates/backend/nestjs-api-postgres/eslint.config.mjs +41 -0
  50. package/dist/templates/backend/nestjs-api-postgres/nest-cli.json +8 -0
  51. package/dist/templates/backend/nestjs-api-postgres/package.json +107 -0
  52. package/dist/templates/backend/nestjs-api-postgres/prisma/migrations/20260126125423_init/migration.sql +84 -0
  53. package/dist/templates/backend/nestjs-api-postgres/prisma/migrations/migration_lock.toml +3 -0
  54. package/dist/templates/backend/nestjs-api-postgres/prisma/schema.prisma +76 -0
  55. package/dist/templates/backend/nestjs-api-postgres/prisma/seed.ts +220 -0
  56. package/dist/templates/backend/nestjs-api-postgres/prisma.config.ts +10 -0
  57. package/dist/templates/backend/nestjs-api-postgres/src/app.module.ts +39 -0
  58. package/dist/templates/backend/nestjs-api-postgres/src/app.service.ts +8 -0
  59. package/dist/templates/backend/nestjs-api-postgres/src/auth/auth.controller.ts +36 -0
  60. package/dist/templates/backend/nestjs-api-postgres/src/auth/auth.module.ts +22 -0
  61. package/dist/templates/backend/nestjs-api-postgres/src/auth/auth.service.ts +63 -0
  62. package/dist/templates/backend/nestjs-api-postgres/src/auth/decorators/roles.decorator.ts +5 -0
  63. package/dist/templates/backend/nestjs-api-postgres/src/auth/dto/login-response.dto.ts +23 -0
  64. package/dist/templates/backend/nestjs-api-postgres/src/auth/dto/login.dto.ts +27 -0
  65. package/dist/templates/backend/nestjs-api-postgres/src/auth/guards/jwt-auth.guard.ts +20 -0
  66. package/dist/templates/backend/nestjs-api-postgres/src/auth/guards/roles.guard.ts +23 -0
  67. package/dist/templates/backend/nestjs-api-postgres/src/auth/strategies/jwt.strategy.ts +32 -0
  68. package/dist/templates/backend/nestjs-api-postgres/src/auth/types.ts +18 -0
  69. package/dist/templates/backend/nestjs-api-postgres/src/common/dto/paginated-response.dto.ts +16 -0
  70. package/dist/templates/backend/nestjs-api-postgres/src/common/dto/pagination.dto.ts +31 -0
  71. package/dist/templates/backend/nestjs-api-postgres/src/common/filters/http-exception.filter.ts +53 -0
  72. package/dist/templates/backend/nestjs-api-postgres/src/config/env.validation.ts +41 -0
  73. package/dist/templates/backend/nestjs-api-postgres/src/health/health.controller.ts +35 -0
  74. package/dist/templates/backend/nestjs-api-postgres/src/health/health.module.ts +7 -0
  75. package/dist/templates/backend/nestjs-api-postgres/src/main.ts +87 -0
  76. package/dist/templates/backend/nestjs-api-postgres/src/posts/dto/create-post.dto.ts +32 -0
  77. package/dist/templates/backend/nestjs-api-postgres/src/posts/dto/post-response.dto.ts +41 -0
  78. package/dist/templates/backend/nestjs-api-postgres/src/posts/dto/update-post.dto.ts +31 -0
  79. package/dist/templates/backend/nestjs-api-postgres/src/posts/posts.controller.ts +161 -0
  80. package/dist/templates/backend/nestjs-api-postgres/src/posts/posts.module.ts +12 -0
  81. package/dist/templates/backend/nestjs-api-postgres/src/posts/posts.service.ts +171 -0
  82. package/dist/templates/backend/nestjs-api-postgres/src/prisma/prisma.module.ts +9 -0
  83. package/dist/templates/backend/nestjs-api-postgres/src/prisma/prisma.service.ts +27 -0
  84. package/dist/templates/backend/nestjs-api-postgres/src/users/constants/settings.constants.ts +9 -0
  85. package/dist/templates/backend/nestjs-api-postgres/src/users/dto/profile-response.dto.ts +39 -0
  86. package/dist/templates/backend/nestjs-api-postgres/src/users/dto/settings-response.dto.ts +18 -0
  87. package/dist/templates/backend/nestjs-api-postgres/src/users/dto/update-profile.dto.ts +48 -0
  88. package/dist/templates/backend/nestjs-api-postgres/src/users/dto/update-settings.dto.ts +40 -0
  89. package/dist/templates/backend/nestjs-api-postgres/src/users/dto/user-response.dto.ts +18 -0
  90. package/dist/templates/backend/nestjs-api-postgres/src/users/profile.service.ts +49 -0
  91. package/dist/templates/backend/nestjs-api-postgres/src/users/settings.service.ts +82 -0
  92. package/dist/templates/backend/nestjs-api-postgres/src/users/users.controller.ts +102 -0
  93. package/dist/templates/backend/nestjs-api-postgres/src/users/users.module.ts +14 -0
  94. package/dist/templates/backend/nestjs-api-postgres/src/users/users.service.ts +27 -0
  95. package/dist/templates/backend/nestjs-api-postgres/test/README.md +412 -0
  96. package/dist/templates/backend/nestjs-api-postgres/test/e2e/auth.e2e-spec.ts +147 -0
  97. package/dist/templates/backend/nestjs-api-postgres/test/e2e/health.e2e-spec.ts +62 -0
  98. package/dist/templates/backend/nestjs-api-postgres/test/e2e/posts.e2e-spec.ts +407 -0
  99. package/dist/templates/backend/nestjs-api-postgres/test/e2e/users.e2e-spec.ts +287 -0
  100. package/dist/templates/backend/nestjs-api-postgres/test/fixtures/test-data.ts +109 -0
  101. package/dist/templates/backend/nestjs-api-postgres/test/helpers/auth.helper.ts +54 -0
  102. package/dist/templates/backend/nestjs-api-postgres/test/helpers/db.helper.ts +73 -0
  103. package/dist/templates/backend/nestjs-api-postgres/test/jest-e2e.json +12 -0
  104. package/dist/templates/backend/nestjs-api-postgres/test/setup-e2e.ts +8 -0
  105. package/dist/templates/backend/nestjs-api-postgres/test/unit/app.service.spec.ts +24 -0
  106. package/dist/templates/backend/nestjs-api-postgres/test/unit/auth.controller.spec.ts +91 -0
  107. package/dist/templates/backend/nestjs-api-postgres/test/unit/auth.service.spec.ts +161 -0
  108. package/dist/templates/backend/nestjs-api-postgres/test/unit/health.controller.spec.ts +78 -0
  109. package/dist/templates/backend/nestjs-api-postgres/test/unit/http-exception.filter.spec.ts +150 -0
  110. package/dist/templates/backend/nestjs-api-postgres/test/unit/jwt-auth.guard.spec.ts +50 -0
  111. package/dist/templates/backend/nestjs-api-postgres/test/unit/jwt.strategy.spec.ts +41 -0
  112. package/dist/templates/backend/nestjs-api-postgres/test/unit/posts.controller.spec.ts +249 -0
  113. package/dist/templates/backend/nestjs-api-postgres/test/unit/posts.service.spec.ts +328 -0
  114. package/dist/templates/backend/nestjs-api-postgres/test/unit/profile.service.spec.ts +146 -0
  115. package/dist/templates/backend/nestjs-api-postgres/test/unit/settings.service.spec.ts +242 -0
  116. package/dist/templates/backend/nestjs-api-postgres/test/unit/users.controller.spec.ts +178 -0
  117. package/dist/templates/backend/nestjs-api-postgres/test/unit/users.service.spec.ts +96 -0
  118. package/dist/templates/backend/nestjs-api-postgres/tsconfig.build.json +4 -0
  119. package/dist/templates/backend/nestjs-api-postgres/tsconfig.json +28 -0
  120. package/dist/templates/backend/nestjs-api-sqlite/.cursor/commands/new-endpoint.md +209 -0
  121. package/dist/templates/backend/nestjs-api-sqlite/.cursor/commands/new-model.md +201 -0
  122. package/dist/templates/backend/nestjs-api-sqlite/.cursor/rules/api-rest.mdc +126 -0
  123. package/dist/templates/backend/nestjs-api-sqlite/.cursor/rules/authentication-security.mdc +86 -0
  124. package/dist/templates/backend/nestjs-api-sqlite/.cursor/rules/dto-validation.mdc +93 -0
  125. package/dist/templates/backend/nestjs-api-sqlite/.cursor/rules/general-rules.mdc +126 -0
  126. package/dist/templates/backend/nestjs-api-sqlite/.cursor/rules/nestjs-architecture.mdc +83 -0
  127. package/dist/templates/backend/nestjs-api-sqlite/.cursor/rules/prisma-standards.mdc +90 -0
  128. package/dist/templates/backend/nestjs-api-sqlite/.cursor/rules/swagger-documentation.mdc +90 -0
  129. package/dist/templates/backend/nestjs-api-sqlite/.cursor/skills/api-security-best-practices/SKILL.md +907 -0
  130. package/dist/templates/backend/nestjs-api-sqlite/.cursor/skills/nestjs-expert/SKILL.md +552 -0
  131. package/dist/templates/backend/nestjs-api-sqlite/.cursor/skills/nestjs-the-best-practices/AGENTS.md +5958 -0
  132. package/dist/templates/backend/nestjs-api-sqlite/.cursor/skills/nestjs-the-best-practices/SKILL.md +130 -0
  133. package/dist/templates/backend/nestjs-api-sqlite/.cursor/skills/nodejs-best-practices/SKILL.md +333 -0
  134. package/dist/templates/backend/nestjs-api-sqlite/.cursor/skills/prisma-expert/SKILL.md +355 -0
  135. package/dist/templates/backend/nestjs-api-sqlite/.env.example +4 -0
  136. package/dist/templates/backend/nestjs-api-sqlite/.env.test +4 -0
  137. package/dist/templates/backend/nestjs-api-sqlite/.prettierrc +4 -0
  138. package/dist/templates/backend/nestjs-api-sqlite/FINAL_IMPLEMENTATION_SUMMARY.md +537 -0
  139. package/dist/templates/backend/nestjs-api-sqlite/IMPLEMENTATION_REPORT.md +229 -0
  140. package/dist/templates/backend/nestjs-api-sqlite/IMPLEMENTATION_SUMMARY.md +275 -0
  141. package/dist/templates/backend/nestjs-api-sqlite/PRISMA_7_MIGRATION.md +175 -0
  142. package/dist/templates/backend/nestjs-api-sqlite/README.md +1464 -0
  143. package/dist/templates/backend/nestjs-api-sqlite/SWAGGER_INTEGRATION.md +194 -0
  144. package/dist/templates/backend/nestjs-api-sqlite/TESTING_IMPLEMENTATION_REPORT.md +368 -0
  145. package/dist/templates/backend/nestjs-api-sqlite/TESTING_SUMMARY.md +293 -0
  146. package/dist/templates/backend/nestjs-api-sqlite/Untitled +218 -0
  147. package/dist/templates/backend/nestjs-api-sqlite/eslint.config.mjs +41 -0
  148. package/dist/templates/backend/nestjs-api-sqlite/nest-cli.json +8 -0
  149. package/dist/templates/backend/nestjs-api-sqlite/package.json +105 -0
  150. package/dist/templates/backend/nestjs-api-sqlite/pnpm-lock.yaml +7630 -0
  151. package/dist/templates/backend/nestjs-api-sqlite/prisma/migrations/20260123190258_init/migration.sql +12 -0
  152. package/dist/templates/backend/nestjs-api-sqlite/prisma/migrations/20260123205000_add_roles_and_posts/migration.sql +32 -0
  153. package/dist/templates/backend/nestjs-api-sqlite/prisma/migrations/20260124163749_init_with_profile_and_settings/migration.sql +33 -0
  154. package/dist/templates/backend/nestjs-api-sqlite/prisma/migrations/20260124190929_add_render_model/migration.sql +13 -0
  155. package/dist/templates/backend/nestjs-api-sqlite/prisma/migrations/20260124200534_add_post_indexes/migration.sql +16 -0
  156. package/dist/templates/backend/nestjs-api-sqlite/prisma/migrations/migration_lock.toml +3 -0
  157. package/dist/templates/backend/nestjs-api-sqlite/prisma/schema.prisma +76 -0
  158. package/dist/templates/backend/nestjs-api-sqlite/prisma/seed.ts +218 -0
  159. package/dist/templates/backend/nestjs-api-sqlite/prisma.config.ts +10 -0
  160. package/dist/templates/backend/nestjs-api-sqlite/src/app.module.ts +39 -0
  161. package/dist/templates/backend/nestjs-api-sqlite/src/app.service.ts +8 -0
  162. package/dist/templates/backend/nestjs-api-sqlite/src/auth/auth.controller.ts +36 -0
  163. package/dist/templates/backend/nestjs-api-sqlite/src/auth/auth.module.ts +22 -0
  164. package/dist/templates/backend/nestjs-api-sqlite/src/auth/auth.service.ts +63 -0
  165. package/dist/templates/backend/nestjs-api-sqlite/src/auth/decorators/roles.decorator.ts +5 -0
  166. package/dist/templates/backend/nestjs-api-sqlite/src/auth/dto/login-response.dto.ts +23 -0
  167. package/dist/templates/backend/nestjs-api-sqlite/src/auth/dto/login.dto.ts +27 -0
  168. package/dist/templates/backend/nestjs-api-sqlite/src/auth/guards/jwt-auth.guard.ts +20 -0
  169. package/dist/templates/backend/nestjs-api-sqlite/src/auth/guards/roles.guard.ts +23 -0
  170. package/dist/templates/backend/nestjs-api-sqlite/src/auth/strategies/jwt.strategy.ts +32 -0
  171. package/dist/templates/backend/nestjs-api-sqlite/src/auth/types.ts +18 -0
  172. package/dist/templates/backend/nestjs-api-sqlite/src/common/dto/paginated-response.dto.ts +16 -0
  173. package/dist/templates/backend/nestjs-api-sqlite/src/common/dto/pagination.dto.ts +31 -0
  174. package/dist/templates/backend/nestjs-api-sqlite/src/common/filters/http-exception.filter.ts +53 -0
  175. package/dist/templates/backend/nestjs-api-sqlite/src/config/env.validation.ts +35 -0
  176. package/dist/templates/backend/nestjs-api-sqlite/src/health/health.controller.ts +35 -0
  177. package/dist/templates/backend/nestjs-api-sqlite/src/health/health.module.ts +7 -0
  178. package/dist/templates/backend/nestjs-api-sqlite/src/main.ts +87 -0
  179. package/dist/templates/backend/nestjs-api-sqlite/src/posts/dto/create-post.dto.ts +32 -0
  180. package/dist/templates/backend/nestjs-api-sqlite/src/posts/dto/post-response.dto.ts +41 -0
  181. package/dist/templates/backend/nestjs-api-sqlite/src/posts/dto/update-post.dto.ts +31 -0
  182. package/dist/templates/backend/nestjs-api-sqlite/src/posts/posts.controller.ts +161 -0
  183. package/dist/templates/backend/nestjs-api-sqlite/src/posts/posts.module.ts +12 -0
  184. package/dist/templates/backend/nestjs-api-sqlite/src/posts/posts.service.ts +171 -0
  185. package/dist/templates/backend/nestjs-api-sqlite/src/prisma/prisma.module.ts +9 -0
  186. package/dist/templates/backend/nestjs-api-sqlite/src/prisma/prisma.service.ts +29 -0
  187. package/dist/templates/backend/nestjs-api-sqlite/src/users/constants/settings.constants.ts +9 -0
  188. package/dist/templates/backend/nestjs-api-sqlite/src/users/dto/profile-response.dto.ts +39 -0
  189. package/dist/templates/backend/nestjs-api-sqlite/src/users/dto/settings-response.dto.ts +18 -0
  190. package/dist/templates/backend/nestjs-api-sqlite/src/users/dto/update-profile.dto.ts +48 -0
  191. package/dist/templates/backend/nestjs-api-sqlite/src/users/dto/update-settings.dto.ts +40 -0
  192. package/dist/templates/backend/nestjs-api-sqlite/src/users/dto/user-response.dto.ts +18 -0
  193. package/dist/templates/backend/nestjs-api-sqlite/src/users/profile.service.ts +49 -0
  194. package/dist/templates/backend/nestjs-api-sqlite/src/users/settings.service.ts +82 -0
  195. package/dist/templates/backend/nestjs-api-sqlite/src/users/users.controller.ts +102 -0
  196. package/dist/templates/backend/nestjs-api-sqlite/src/users/users.module.ts +14 -0
  197. package/dist/templates/backend/nestjs-api-sqlite/src/users/users.service.ts +27 -0
  198. package/dist/templates/backend/nestjs-api-sqlite/test/README.md +412 -0
  199. package/dist/templates/backend/nestjs-api-sqlite/test/e2e/auth.e2e-spec.ts +147 -0
  200. package/dist/templates/backend/nestjs-api-sqlite/test/e2e/health.e2e-spec.ts +62 -0
  201. package/dist/templates/backend/nestjs-api-sqlite/test/e2e/posts.e2e-spec.ts +407 -0
  202. package/dist/templates/backend/nestjs-api-sqlite/test/e2e/users.e2e-spec.ts +287 -0
  203. package/dist/templates/backend/nestjs-api-sqlite/test/fixtures/test-data.ts +109 -0
  204. package/dist/templates/backend/nestjs-api-sqlite/test/helpers/auth.helper.ts +54 -0
  205. package/dist/templates/backend/nestjs-api-sqlite/test/helpers/db.helper.ts +72 -0
  206. package/dist/templates/backend/nestjs-api-sqlite/test/jest-e2e.json +12 -0
  207. package/dist/templates/backend/nestjs-api-sqlite/test/setup-e2e.ts +8 -0
  208. package/dist/templates/backend/nestjs-api-sqlite/test/unit/app.service.spec.ts +24 -0
  209. package/dist/templates/backend/nestjs-api-sqlite/test/unit/auth.controller.spec.ts +91 -0
  210. package/dist/templates/backend/nestjs-api-sqlite/test/unit/auth.service.spec.ts +161 -0
  211. package/dist/templates/backend/nestjs-api-sqlite/test/unit/health.controller.spec.ts +78 -0
  212. package/dist/templates/backend/nestjs-api-sqlite/test/unit/http-exception.filter.spec.ts +150 -0
  213. package/dist/templates/backend/nestjs-api-sqlite/test/unit/jwt-auth.guard.spec.ts +50 -0
  214. package/dist/templates/backend/nestjs-api-sqlite/test/unit/jwt.strategy.spec.ts +41 -0
  215. package/dist/templates/backend/nestjs-api-sqlite/test/unit/posts.controller.spec.ts +249 -0
  216. package/dist/templates/backend/nestjs-api-sqlite/test/unit/posts.service.spec.ts +328 -0
  217. package/dist/templates/backend/nestjs-api-sqlite/test/unit/profile.service.spec.ts +146 -0
  218. package/dist/templates/backend/nestjs-api-sqlite/test/unit/settings.service.spec.ts +242 -0
  219. package/dist/templates/backend/nestjs-api-sqlite/test/unit/users.controller.spec.ts +178 -0
  220. package/dist/templates/backend/nestjs-api-sqlite/test/unit/users.service.spec.ts +96 -0
  221. package/dist/templates/backend/nestjs-api-sqlite/tsconfig.build.json +4 -0
  222. package/dist/templates/backend/nestjs-api-sqlite/tsconfig.json +28 -0
  223. package/dist/templates/frontend/angular-base/.agents/skills/angular-component/SKILL.md +288 -0
  224. package/dist/templates/frontend/angular-base/.agents/skills/angular-component/references/component-patterns.md +358 -0
  225. package/dist/templates/frontend/angular-base/.agents/skills/angular-di/SKILL.md +387 -0
  226. package/dist/templates/frontend/angular-base/.agents/skills/angular-di/references/di-patterns.md +519 -0
  227. package/dist/templates/frontend/angular-base/.agents/skills/angular-directives/SKILL.md +437 -0
  228. package/dist/templates/frontend/angular-base/.agents/skills/angular-directives/references/directive-patterns.md +570 -0
  229. package/dist/templates/frontend/angular-base/.agents/skills/angular-forms/SKILL.md +434 -0
  230. package/dist/templates/frontend/angular-base/.agents/skills/angular-forms/references/form-patterns.md +398 -0
  231. package/dist/templates/frontend/angular-base/.agents/skills/angular-http/SKILL.md +366 -0
  232. package/dist/templates/frontend/angular-base/.agents/skills/angular-http/references/http-patterns.md +448 -0
  233. package/dist/templates/frontend/angular-base/.agents/skills/angular-routing/SKILL.md +395 -0
  234. package/dist/templates/frontend/angular-base/.agents/skills/angular-routing/references/routing-patterns.md +472 -0
  235. package/dist/templates/frontend/angular-base/.agents/skills/angular-signals/SKILL.md +302 -0
  236. package/dist/templates/frontend/angular-base/.agents/skills/angular-signals/references/signal-patterns.md +404 -0
  237. package/dist/templates/frontend/angular-base/.agents/skills/angular-ssr/SKILL.md +435 -0
  238. package/dist/templates/frontend/angular-base/.agents/skills/angular-ssr/references/ssr-patterns.md +497 -0
  239. package/dist/templates/frontend/angular-base/.agents/skills/angular-testing/SKILL.md +660 -0
  240. package/dist/templates/frontend/angular-base/.agents/skills/angular-testing/references/testing-patterns.md +707 -0
  241. package/dist/templates/frontend/angular-base/.agents/skills/angular-tooling/SKILL.md +352 -0
  242. package/dist/templates/frontend/angular-base/.agents/skills/angular-tooling/references/tooling-patterns.md +448 -0
  243. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-accessibility/SKILL.md +780 -0
  244. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-advanced-components/SKILL.md +718 -0
  245. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-advanced-design-systems/SKILL.md +612 -0
  246. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-advanced-layouts/SKILL.md +594 -0
  247. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-animations/SKILL.md +432 -0
  248. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-animations/references/animation-patterns.md +427 -0
  249. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-debugging/SKILL.md +354 -0
  250. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-debugging/references/troubleshooting-guide.md +306 -0
  251. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-framework-integration/SKILL.md +578 -0
  252. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-framework-integration/references/react-patterns.md +353 -0
  253. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-fundamentals-v4/SKILL.md +608 -0
  254. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-fundamentals-v4/references/advanced-theme-patterns.md +215 -0
  255. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-fundamentals-v4/references/custom-utilities-guide.md +281 -0
  256. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-mobile-first/SKILL.md +768 -0
  257. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-performance/SKILL.md +374 -0
  258. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-performance/references/bundle-optimization.md +244 -0
  259. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-plugins/SKILL.md +505 -0
  260. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-responsive-darkmode/SKILL.md +601 -0
  261. package/dist/templates/frontend/angular-base/.agents/skills/tailwindcss-responsive-darkmode/references/advanced-responsive-patterns.md +485 -0
  262. package/dist/templates/frontend/angular-base/.agents/skills/web-design-guidelines/SKILL.md +39 -0
  263. package/dist/templates/frontend/angular-base/.cursor/mcp.json +12 -0
  264. package/dist/templates/frontend/angular-base/.cursor/rules/angular-expert.mdc +153 -0
  265. package/dist/templates/frontend/angular-base/.editorconfig +17 -0
  266. package/dist/templates/frontend/angular-base/.eslintrc.json +52 -0
  267. package/dist/templates/frontend/angular-base/.github/workflows/ci.yml +122 -0
  268. package/dist/templates/frontend/angular-base/.husky/pre-commit +1 -0
  269. package/dist/templates/frontend/angular-base/.husky/pre-push +1 -0
  270. package/dist/templates/frontend/angular-base/.postcssrc.json +5 -0
  271. package/dist/templates/frontend/angular-base/.prettierignore +8 -0
  272. package/dist/templates/frontend/angular-base/.prettierrc.json +15 -0
  273. package/dist/templates/frontend/angular-base/.vscode/extensions.json +4 -0
  274. package/dist/templates/frontend/angular-base/.vscode/launch.json +20 -0
  275. package/dist/templates/frontend/angular-base/.vscode/mcp.json +9 -0
  276. package/dist/templates/frontend/angular-base/.vscode/tasks.json +42 -0
  277. package/dist/templates/frontend/angular-base/CONTRIBUTING.md +230 -0
  278. package/dist/templates/frontend/angular-base/README.md +383 -0
  279. package/dist/templates/frontend/angular-base/angular.json +84 -0
  280. package/dist/templates/frontend/angular-base/cypress/e2e/app.cy.ts +39 -0
  281. package/dist/templates/frontend/angular-base/cypress/e2e/auth.cy.ts +196 -0
  282. package/dist/templates/frontend/angular-base/cypress/e2e/dashboard.cy.ts +56 -0
  283. package/dist/templates/frontend/angular-base/cypress/e2e/home.cy.ts +35 -0
  284. package/dist/templates/frontend/angular-base/cypress/fixtures/example.json +4 -0
  285. package/dist/templates/frontend/angular-base/cypress/support/commands.ts +8 -0
  286. package/dist/templates/frontend/angular-base/cypress/support/e2e.ts +11 -0
  287. package/dist/templates/frontend/angular-base/cypress.config.ts +11 -0
  288. package/dist/templates/frontend/angular-base/docs/ARCHITECTURE.md +337 -0
  289. package/dist/templates/frontend/angular-base/docs/AUTHENTICATION.md +491 -0
  290. package/dist/templates/frontend/angular-base/docs/DEPLOYMENT.md +507 -0
  291. package/dist/templates/frontend/angular-base/docs/FEATURES.md +404 -0
  292. package/dist/templates/frontend/angular-base/docs/TESTING.md +418 -0
  293. package/dist/templates/frontend/angular-base/docs/THEMING.md +333 -0
  294. package/dist/templates/frontend/angular-base/docs/UI_LIBRARIES.md +380 -0
  295. package/dist/templates/frontend/angular-base/docs/USER_PROFILE_FLOW.md +431 -0
  296. package/dist/templates/frontend/angular-base/package-lock.json +13321 -0
  297. package/dist/templates/frontend/angular-base/package.json +93 -0
  298. package/dist/templates/frontend/angular-base/public/favicon.ico +0 -0
  299. package/dist/templates/frontend/angular-base/src/app/app.config.server.ts +14 -0
  300. package/dist/templates/frontend/angular-base/src/app/app.config.ts +32 -0
  301. package/dist/templates/frontend/angular-base/src/app/app.css +0 -0
  302. package/dist/templates/frontend/angular-base/src/app/app.html +1 -0
  303. package/dist/templates/frontend/angular-base/src/app/app.routes.server.ts +28 -0
  304. package/dist/templates/frontend/angular-base/src/app/app.routes.ts +67 -0
  305. package/dist/templates/frontend/angular-base/src/app/app.spec.ts +23 -0
  306. package/dist/templates/frontend/angular-base/src/app/app.ts +12 -0
  307. package/dist/templates/frontend/angular-base/src/app/core/guards/admin.guard.ts +16 -0
  308. package/dist/templates/frontend/angular-base/src/app/core/guards/auth.guard.spec.ts +43 -0
  309. package/dist/templates/frontend/angular-base/src/app/core/guards/auth.guard.ts +15 -0
  310. package/dist/templates/frontend/angular-base/src/app/core/index.ts +10 -0
  311. package/dist/templates/frontend/angular-base/src/app/core/interceptors/http-error.interceptor.spec.ts +43 -0
  312. package/dist/templates/frontend/angular-base/src/app/core/interceptors/http-error.interceptor.ts +53 -0
  313. package/dist/templates/frontend/angular-base/src/app/core/services/auth.service.spec.ts +33 -0
  314. package/dist/templates/frontend/angular-base/src/app/core/services/auth.service.ts +91 -0
  315. package/dist/templates/frontend/angular-base/src/app/core/services/theme.service.spec.ts +33 -0
  316. package/dist/templates/frontend/angular-base/src/app/core/services/theme.service.ts +136 -0
  317. package/dist/templates/frontend/angular-base/src/app/features/admin/index.ts +3 -0
  318. package/dist/templates/frontend/angular-base/src/app/features/admin/routes.ts +21 -0
  319. package/dist/templates/frontend/angular-base/src/app/features/admin/users/models/admin-user.model.ts +32 -0
  320. package/dist/templates/frontend/angular-base/src/app/features/admin/users/pages/user-form.page.ts +279 -0
  321. package/dist/templates/frontend/angular-base/src/app/features/admin/users/pages/user-list.page.ts +336 -0
  322. package/dist/templates/frontend/angular-base/src/app/features/admin/users/services/admin-user.service.ts +151 -0
  323. package/dist/templates/frontend/angular-base/src/app/features/auth/index.ts +2 -0
  324. package/dist/templates/frontend/angular-base/src/app/features/auth/models/auth.model.ts +39 -0
  325. package/dist/templates/frontend/angular-base/src/app/features/auth/pages/login.page.spec.ts +44 -0
  326. package/dist/templates/frontend/angular-base/src/app/features/auth/pages/login.page.ts +187 -0
  327. package/dist/templates/frontend/angular-base/src/app/features/auth/pages/password-recovery.page.spec.ts +48 -0
  328. package/dist/templates/frontend/angular-base/src/app/features/auth/pages/password-recovery.page.ts +171 -0
  329. package/dist/templates/frontend/angular-base/src/app/features/auth/pages/signup.page.spec.ts +53 -0
  330. package/dist/templates/frontend/angular-base/src/app/features/auth/pages/signup.page.ts +269 -0
  331. package/dist/templates/frontend/angular-base/src/app/features/auth/routes.ts +22 -0
  332. package/dist/templates/frontend/angular-base/src/app/features/customers/index.ts +3 -0
  333. package/dist/templates/frontend/angular-base/src/app/features/customers/models/customer.model.ts +41 -0
  334. package/dist/templates/frontend/angular-base/src/app/features/customers/pages/customer-detail.page.ts +299 -0
  335. package/dist/templates/frontend/angular-base/src/app/features/customers/pages/customer-form.page.ts +302 -0
  336. package/dist/templates/frontend/angular-base/src/app/features/customers/pages/customer-list.page.ts +439 -0
  337. package/dist/templates/frontend/angular-base/src/app/features/customers/routes.ts +21 -0
  338. package/dist/templates/frontend/angular-base/src/app/features/customers/services/customer.service.ts +162 -0
  339. package/dist/templates/frontend/angular-base/src/app/features/dashboard/components/stats-card/stats-card.component.spec.ts +23 -0
  340. package/dist/templates/frontend/angular-base/src/app/features/dashboard/components/stats-card/stats-card.component.ts +52 -0
  341. package/dist/templates/frontend/angular-base/src/app/features/dashboard/index.ts +1 -0
  342. package/dist/templates/frontend/angular-base/src/app/features/dashboard/pages/dashboard.page.spec.ts +21 -0
  343. package/dist/templates/frontend/angular-base/src/app/features/dashboard/pages/dashboard.page.ts +122 -0
  344. package/dist/templates/frontend/angular-base/src/app/features/dashboard/routes.ts +8 -0
  345. package/dist/templates/frontend/angular-base/src/app/features/dashboard/services/dashboard.service.spec.ts +37 -0
  346. package/dist/templates/frontend/angular-base/src/app/features/dashboard/services/dashboard.service.ts +48 -0
  347. package/dist/templates/frontend/angular-base/src/app/features/errors/index.ts +1 -0
  348. package/dist/templates/frontend/angular-base/src/app/features/errors/pages/forbidden.page.ts +50 -0
  349. package/dist/templates/frontend/angular-base/src/app/features/errors/pages/maintenance.page.ts +46 -0
  350. package/dist/templates/frontend/angular-base/src/app/features/errors/pages/not-found.page.ts +49 -0
  351. package/dist/templates/frontend/angular-base/src/app/features/errors/pages/server-error.page.ts +60 -0
  352. package/dist/templates/frontend/angular-base/src/app/features/errors/routes.ts +25 -0
  353. package/dist/templates/frontend/angular-base/src/app/features/home/index.ts +1 -0
  354. package/dist/templates/frontend/angular-base/src/app/features/home/pages/home.page.spec.ts +23 -0
  355. package/dist/templates/frontend/angular-base/src/app/features/home/pages/home.page.ts +105 -0
  356. package/dist/templates/frontend/angular-base/src/app/features/home/routes.ts +8 -0
  357. package/dist/templates/frontend/angular-base/src/app/features/projects/index.ts +3 -0
  358. package/dist/templates/frontend/angular-base/src/app/features/projects/models/project.model.ts +48 -0
  359. package/dist/templates/frontend/angular-base/src/app/features/projects/pages/project-detail.page.ts +444 -0
  360. package/dist/templates/frontend/angular-base/src/app/features/projects/pages/project-form.page.ts +393 -0
  361. package/dist/templates/frontend/angular-base/src/app/features/projects/pages/project-list.page.ts +411 -0
  362. package/dist/templates/frontend/angular-base/src/app/features/projects/routes.ts +21 -0
  363. package/dist/templates/frontend/angular-base/src/app/features/projects/services/project.service.ts +227 -0
  364. package/dist/templates/frontend/angular-base/src/app/features/reports/index.ts +3 -0
  365. package/dist/templates/frontend/angular-base/src/app/features/reports/models/report.model.ts +27 -0
  366. package/dist/templates/frontend/angular-base/src/app/features/reports/pages/analytics.page.html +246 -0
  367. package/dist/templates/frontend/angular-base/src/app/features/reports/pages/analytics.page.ts +135 -0
  368. package/dist/templates/frontend/angular-base/src/app/features/reports/routes.ts +13 -0
  369. package/dist/templates/frontend/angular-base/src/app/features/reports/services/report.service.ts +141 -0
  370. package/dist/templates/frontend/angular-base/src/app/features/user/index.ts +3 -0
  371. package/dist/templates/frontend/angular-base/src/app/features/user/models/user.model.ts +23 -0
  372. package/dist/templates/frontend/angular-base/src/app/features/user/pages/privacy.page.spec.ts +27 -0
  373. package/dist/templates/frontend/angular-base/src/app/features/user/pages/privacy.page.ts +414 -0
  374. package/dist/templates/frontend/angular-base/src/app/features/user/pages/profile.page.spec.ts +39 -0
  375. package/dist/templates/frontend/angular-base/src/app/features/user/pages/profile.page.ts +232 -0
  376. package/dist/templates/frontend/angular-base/src/app/features/user/pages/settings.page.spec.ts +28 -0
  377. package/dist/templates/frontend/angular-base/src/app/features/user/pages/settings.page.ts +284 -0
  378. package/dist/templates/frontend/angular-base/src/app/features/user/routes.ts +21 -0
  379. package/dist/templates/frontend/angular-base/src/app/features/user/services/user.service.ts +74 -0
  380. package/dist/templates/frontend/angular-base/src/app/layout/footer/footer.component.spec.ts +25 -0
  381. package/dist/templates/frontend/angular-base/src/app/layout/footer/footer.component.ts +67 -0
  382. package/dist/templates/frontend/angular-base/src/app/layout/index.ts +3 -0
  383. package/dist/templates/frontend/angular-base/src/app/layout/main-layout/main-layout.component.spec.ts +23 -0
  384. package/dist/templates/frontend/angular-base/src/app/layout/main-layout/main-layout.component.ts +30 -0
  385. package/dist/templates/frontend/angular-base/src/app/layout/navbar/navbar.component.spec.ts +23 -0
  386. package/dist/templates/frontend/angular-base/src/app/layout/navbar/navbar.component.ts +293 -0
  387. package/dist/templates/frontend/angular-base/src/app/shared/components/badge/badge.component.spec.ts +36 -0
  388. package/dist/templates/frontend/angular-base/src/app/shared/components/badge/badge.component.ts +70 -0
  389. package/dist/templates/frontend/angular-base/src/app/shared/components/button/button.component.spec.ts +44 -0
  390. package/dist/templates/frontend/angular-base/src/app/shared/components/button/button.component.ts +64 -0
  391. package/dist/templates/frontend/angular-base/src/app/shared/components/card/card.component.spec.ts +29 -0
  392. package/dist/templates/frontend/angular-base/src/app/shared/components/card/card.component.ts +60 -0
  393. package/dist/templates/frontend/angular-base/src/app/shared/components/data-table/data-table.component.spec.ts +49 -0
  394. package/dist/templates/frontend/angular-base/src/app/shared/components/data-table/data-table.component.ts +280 -0
  395. package/dist/templates/frontend/angular-base/src/app/shared/components/empty-state/empty-state.component.spec.ts +36 -0
  396. package/dist/templates/frontend/angular-base/src/app/shared/components/empty-state/empty-state.component.ts +56 -0
  397. package/dist/templates/frontend/angular-base/src/app/shared/components/modal/modal.component.spec.ts +32 -0
  398. package/dist/templates/frontend/angular-base/src/app/shared/components/modal/modal.component.ts +131 -0
  399. package/dist/templates/frontend/angular-base/src/app/shared/components/pagination/pagination.component.spec.ts +38 -0
  400. package/dist/templates/frontend/angular-base/src/app/shared/components/pagination/pagination.component.ts +194 -0
  401. package/dist/templates/frontend/angular-base/src/app/shared/components/search-input/search-input.component.spec.ts +37 -0
  402. package/dist/templates/frontend/angular-base/src/app/shared/components/search-input/search-input.component.ts +125 -0
  403. package/dist/templates/frontend/angular-base/src/app/shared/components/skeleton-loader/skeleton-loader.component.spec.ts +30 -0
  404. package/dist/templates/frontend/angular-base/src/app/shared/components/skeleton-loader/skeleton-loader.component.ts +55 -0
  405. package/dist/templates/frontend/angular-base/src/app/shared/components/toggle/toggle.component.spec.ts +49 -0
  406. package/dist/templates/frontend/angular-base/src/app/shared/components/toggle/toggle.component.ts +101 -0
  407. package/dist/templates/frontend/angular-base/src/app/shared/components/user-dropdown/user-dropdown.component.spec.ts +65 -0
  408. package/dist/templates/frontend/angular-base/src/app/shared/components/user-dropdown/user-dropdown.component.ts +219 -0
  409. package/dist/templates/frontend/angular-base/src/app/shared/directives/auto-focus.directive.spec.ts +33 -0
  410. package/dist/templates/frontend/angular-base/src/app/shared/directives/auto-focus.directive.ts +25 -0
  411. package/dist/templates/frontend/angular-base/src/app/shared/index.ts +18 -0
  412. package/dist/templates/frontend/angular-base/src/app/shared/pipes/date-format.pipe.spec.ts +29 -0
  413. package/dist/templates/frontend/angular-base/src/app/shared/pipes/date-format.pipe.ts +39 -0
  414. package/dist/templates/frontend/angular-base/src/environments/environment.development.ts +4 -0
  415. package/dist/templates/frontend/angular-base/src/environments/environment.ts +4 -0
  416. package/dist/templates/frontend/angular-base/src/index.html +44 -0
  417. package/dist/templates/frontend/angular-base/src/main.server.ts +7 -0
  418. package/dist/templates/frontend/angular-base/src/main.ts +5 -0
  419. package/dist/templates/frontend/angular-base/src/server.ts +66 -0
  420. package/dist/templates/frontend/angular-base/src/styles.css +209 -0
  421. package/dist/templates/frontend/angular-base/src/test-setup.ts +10 -0
  422. package/dist/templates/frontend/angular-base/tsconfig.app.json +17 -0
  423. package/dist/templates/frontend/angular-base/tsconfig.json +41 -0
  424. package/dist/templates/frontend/angular-base/tsconfig.spec.json +15 -0
  425. package/dist/templates/frontend/angular-base/vitest.config.ts +25 -0
  426. package/dist/templates/frontend/react-vite/.cursor/skills/architecture/SKILL.md +26 -0
  427. package/dist/templates/frontend/react-vite/.cursor/skills/components-shadcn/SKILL.md +23 -0
  428. package/dist/templates/frontend/react-vite/.cursor/skills/daisyui/SKILL.md +98 -0
  429. package/dist/templates/frontend/react-vite/.cursor/skills/routing/SKILL.md +32 -0
  430. package/dist/templates/frontend/react-vite/.cursor/skills/testing/SKILL.md +55 -0
  431. package/dist/templates/frontend/react-vite/.cursor/skills/tooling-and-scripts/SKILL.md +24 -0
  432. package/dist/templates/frontend/react-vite/.cursor/skills/ui-and-styling/SKILL.md +32 -0
  433. package/dist/templates/frontend/react-vite/.cursor/skills/vibe-and-ia/SKILL.md +23 -0
  434. package/dist/templates/frontend/react-vite/.prettierrc +6 -0
  435. package/dist/templates/frontend/react-vite/.tanstack/tmp/c28007bb-2319511cf318e28129c8d8eb723db5fd +9 -0
  436. package/dist/templates/frontend/react-vite/.tanstack/tmp/c28007bb-bcef89e9e4593777e1c15ec4b4f32eea +9 -0
  437. package/dist/templates/frontend/react-vite/.vscode/extensions.json +7 -0
  438. package/dist/templates/frontend/react-vite/README.md +75 -0
  439. package/dist/templates/frontend/react-vite/components.json +22 -0
  440. package/dist/templates/frontend/react-vite/eslint.config.js +31 -0
  441. package/dist/templates/frontend/react-vite/index.html +13 -0
  442. package/dist/templates/frontend/react-vite/package.json +62 -0
  443. package/dist/templates/frontend/react-vite/pnpm-lock.yaml +4487 -0
  444. package/dist/templates/frontend/react-vite/pnpm-workspace.yaml +2 -0
  445. package/dist/templates/frontend/react-vite/src/assets/react.svg +1 -0
  446. package/dist/templates/frontend/react-vite/src/components/ui/badge.tsx +37 -0
  447. package/dist/templates/frontend/react-vite/src/components/ui/breadcrumb.tsx +106 -0
  448. package/dist/templates/frontend/react-vite/src/components/ui/button.tsx +58 -0
  449. package/dist/templates/frontend/react-vite/src/components/ui/card.tsx +72 -0
  450. package/dist/templates/frontend/react-vite/src/components/ui/form.tsx +165 -0
  451. package/dist/templates/frontend/react-vite/src/components/ui/input.tsx +22 -0
  452. package/dist/templates/frontend/react-vite/src/components/ui/label.tsx +24 -0
  453. package/dist/templates/frontend/react-vite/src/components/ui/password-input.tsx +41 -0
  454. package/dist/templates/frontend/react-vite/src/components/ui/separator.tsx +28 -0
  455. package/dist/templates/frontend/react-vite/src/components/ui/tabs.tsx +62 -0
  456. package/dist/templates/frontend/react-vite/src/components/ui/textarea.tsx +21 -0
  457. package/dist/templates/frontend/react-vite/src/index.css +104 -0
  458. package/dist/templates/frontend/react-vite/src/lib/queryClient.ts +11 -0
  459. package/dist/templates/frontend/react-vite/src/lib/utils.ts +6 -0
  460. package/dist/templates/frontend/react-vite/src/main.tsx +33 -0
  461. package/dist/templates/frontend/react-vite/src/routeTree.gen.ts +77 -0
  462. package/dist/templates/frontend/react-vite/src/router.tsx +13 -0
  463. package/dist/templates/frontend/react-vite/src/routes/__root.tsx +82 -0
  464. package/dist/templates/frontend/react-vite/src/routes/index.tsx +187 -0
  465. package/dist/templates/frontend/react-vite/src/routes/otra-ruta.tsx +319 -0
  466. package/dist/templates/frontend/react-vite/src/test/setup.ts +1 -0
  467. package/dist/templates/frontend/react-vite/tsconfig.app.json +34 -0
  468. package/dist/templates/frontend/react-vite/tsconfig.json +10 -0
  469. package/dist/templates/frontend/react-vite/tsconfig.node.json +26 -0
  470. package/dist/templates/frontend/react-vite/vite.config.ts +22 -0
  471. package/dist/templates/frontend/react-vite/vitest.config.ts +9 -0
  472. package/dist/templates/frontend/react-vite-help/.cursor/skills/architecture/SKILL.md +26 -0
  473. package/dist/templates/frontend/react-vite-help/.cursor/skills/components-shadcn/SKILL.md +23 -0
  474. package/dist/templates/frontend/react-vite-help/.cursor/skills/daisyui/SKILL.md +98 -0
  475. package/dist/templates/frontend/react-vite-help/.cursor/skills/routing/SKILL.md +32 -0
  476. package/dist/templates/frontend/react-vite-help/.cursor/skills/testing/SKILL.md +55 -0
  477. package/dist/templates/frontend/react-vite-help/.cursor/skills/tooling-and-scripts/SKILL.md +24 -0
  478. package/dist/templates/frontend/react-vite-help/.cursor/skills/ui-and-styling/SKILL.md +32 -0
  479. package/dist/templates/frontend/react-vite-help/.cursor/skills/vibe-and-ia/SKILL.md +23 -0
  480. package/dist/templates/frontend/react-vite-help/.prettierrc +6 -0
  481. package/dist/templates/frontend/react-vite-help/.tanstack/tmp/c28007bb-2319511cf318e28129c8d8eb723db5fd +9 -0
  482. package/dist/templates/frontend/react-vite-help/.tanstack/tmp/c28007bb-bcef89e9e4593777e1c15ec4b4f32eea +9 -0
  483. package/dist/templates/frontend/react-vite-help/.vscode/extensions.json +7 -0
  484. package/dist/templates/frontend/react-vite-help/README.md +75 -0
  485. package/dist/templates/frontend/react-vite-help/components.json +22 -0
  486. package/dist/templates/frontend/react-vite-help/eslint.config.js +31 -0
  487. package/dist/templates/frontend/react-vite-help/index.html +13 -0
  488. package/dist/templates/frontend/react-vite-help/package.json +62 -0
  489. package/dist/templates/frontend/react-vite-help/pnpm-lock.yaml +4487 -0
  490. package/dist/templates/frontend/react-vite-help/pnpm-workspace.yaml +2 -0
  491. package/dist/templates/frontend/react-vite-help/src/assets/react.svg +1 -0
  492. package/dist/templates/frontend/react-vite-help/src/components/documentacion/entorno.tsx +99 -0
  493. package/dist/templates/frontend/react-vite-help/src/components/documentacion/estructura.tsx +100 -0
  494. package/dist/templates/frontend/react-vite-help/src/components/documentacion/figma-mcp.tsx +200 -0
  495. package/dist/templates/frontend/react-vite-help/src/components/documentacion/inicio.tsx +69 -0
  496. package/dist/templates/frontend/react-vite-help/src/components/documentacion/instalacion.tsx +72 -0
  497. package/dist/templates/frontend/react-vite-help/src/components/documentacion/personalizacion.tsx +163 -0
  498. package/dist/templates/frontend/react-vite-help/src/components/documentacion/rutas.tsx +138 -0
  499. package/dist/templates/frontend/react-vite-help/src/components/documentacion/stack.tsx +401 -0
  500. package/dist/templates/frontend/react-vite-help/src/components/ui/badge.tsx +37 -0
  501. package/dist/templates/frontend/react-vite-help/src/components/ui/breadcrumb.tsx +106 -0
  502. package/dist/templates/frontend/react-vite-help/src/components/ui/button.tsx +58 -0
  503. package/dist/templates/frontend/react-vite-help/src/components/ui/card.tsx +72 -0
  504. package/dist/templates/frontend/react-vite-help/src/components/ui/form.tsx +165 -0
  505. package/dist/templates/frontend/react-vite-help/src/components/ui/input.tsx +22 -0
  506. package/dist/templates/frontend/react-vite-help/src/components/ui/label.tsx +24 -0
  507. package/dist/templates/frontend/react-vite-help/src/components/ui/password-input.tsx +41 -0
  508. package/dist/templates/frontend/react-vite-help/src/components/ui/separator.tsx +28 -0
  509. package/dist/templates/frontend/react-vite-help/src/components/ui/tabs.tsx +62 -0
  510. package/dist/templates/frontend/react-vite-help/src/components/ui/textarea.tsx +21 -0
  511. package/dist/templates/frontend/react-vite-help/src/data/proyectos.json +56 -0
  512. package/dist/templates/frontend/react-vite-help/src/index.css +104 -0
  513. package/dist/templates/frontend/react-vite-help/src/lib/queryClient.ts +11 -0
  514. package/dist/templates/frontend/react-vite-help/src/lib/utils.ts +6 -0
  515. package/dist/templates/frontend/react-vite-help/src/main.tsx +33 -0
  516. package/dist/templates/frontend/react-vite-help/src/routeTree.gen.ts +241 -0
  517. package/dist/templates/frontend/react-vite-help/src/router.tsx +13 -0
  518. package/dist/templates/frontend/react-vite-help/src/routes/__root.tsx +92 -0
  519. package/dist/templates/frontend/react-vite-help/src/routes/auth/iniciar-sesion.tsx +139 -0
  520. package/dist/templates/frontend/react-vite-help/src/routes/auth/registro.tsx +205 -0
  521. package/dist/templates/frontend/react-vite-help/src/routes/contacto.tsx +60 -0
  522. package/dist/templates/frontend/react-vite-help/src/routes/dashbord.tsx +9 -0
  523. package/dist/templates/frontend/react-vite-help/src/routes/documentacion.tsx +80 -0
  524. package/dist/templates/frontend/react-vite-help/src/routes/index.test.tsx +42 -0
  525. package/dist/templates/frontend/react-vite-help/src/routes/index.tsx +211 -0
  526. package/dist/templates/frontend/react-vite-help/src/routes/perfil.tsx +9 -0
  527. package/dist/templates/frontend/react-vite-help/src/routes/proyectos.$proyectoId.tsx +156 -0
  528. package/dist/templates/frontend/react-vite-help/src/routes/proyectos.tsx +93 -0
  529. package/dist/templates/frontend/react-vite-help/src/test/setup.ts +1 -0
  530. package/dist/templates/frontend/react-vite-help/tsconfig.app.json +34 -0
  531. package/dist/templates/frontend/react-vite-help/tsconfig.json +10 -0
  532. package/dist/templates/frontend/react-vite-help/tsconfig.node.json +26 -0
  533. package/dist/templates/frontend/react-vite-help/vite.config.ts +22 -0
  534. package/dist/templates/frontend/react-vite-help/vitest.config.ts +9 -0
  535. package/dist/templates/mobile/.gitkeep +1 -0
  536. package/dist/templates/mobile/expo-base/.cursor/rules/general-rules.mdc +231 -0
  537. package/dist/templates/mobile/expo-base/.cursor/rules/react-native-rules.mdc +1348 -0
  538. package/dist/templates/mobile/expo-base/.env +1 -0
  539. package/dist/templates/mobile/expo-base/.husky/commit-msg +4 -0
  540. package/dist/templates/mobile/expo-base/.husky/pre-commit +1 -0
  541. package/dist/templates/mobile/expo-base/.lintstagedrc.js +25 -0
  542. package/dist/templates/mobile/expo-base/.prettierignore +10 -0
  543. package/dist/templates/mobile/expo-base/.prettierrc +11 -0
  544. package/dist/templates/mobile/expo-base/.vscode/extensions.json +1 -0
  545. package/dist/templates/mobile/expo-base/.vscode/settings.json +7 -0
  546. package/dist/templates/mobile/expo-base/CHANGELOG.md +155 -0
  547. package/dist/templates/mobile/expo-base/IMPLEMENTATION_SUMMARY.md +413 -0
  548. package/dist/templates/mobile/expo-base/README.md +510 -0
  549. package/dist/templates/mobile/expo-base/SETUP_NOTES.md +233 -0
  550. package/dist/templates/mobile/expo-base/TEMPLATE_USAGE.md +623 -0
  551. package/dist/templates/mobile/expo-base/WARP.md +123 -0
  552. package/dist/templates/mobile/expo-base/app/(public)/_layout.tsx +21 -0
  553. package/dist/templates/mobile/expo-base/app/(public)/forgot-password.tsx +3 -0
  554. package/dist/templates/mobile/expo-base/app/(public)/login.tsx +3 -0
  555. package/dist/templates/mobile/expo-base/app/(public)/register.tsx +3 -0
  556. package/dist/templates/mobile/expo-base/app/(tabs)/_layout.tsx +60 -0
  557. package/dist/templates/mobile/expo-base/app/(tabs)/explore.tsx +235 -0
  558. package/dist/templates/mobile/expo-base/app/(tabs)/index.tsx +290 -0
  559. package/dist/templates/mobile/expo-base/app/(tabs)/profile.tsx +3 -0
  560. package/dist/templates/mobile/expo-base/app/_layout.tsx +143 -0
  561. package/dist/templates/mobile/expo-base/app/modal.tsx +29 -0
  562. package/dist/templates/mobile/expo-base/app/onboarding.tsx +3 -0
  563. package/dist/templates/mobile/expo-base/app/profile/_layout.tsx +44 -0
  564. package/dist/templates/mobile/expo-base/app/profile/change-password.tsx +3 -0
  565. package/dist/templates/mobile/expo-base/app/profile/edit.tsx +3 -0
  566. package/dist/templates/mobile/expo-base/app/settings/_layout.tsx +62 -0
  567. package/dist/templates/mobile/expo-base/app/settings/about.tsx +3 -0
  568. package/dist/templates/mobile/expo-base/app/settings/index.tsx +3 -0
  569. package/dist/templates/mobile/expo-base/app/settings/language.tsx +3 -0
  570. package/dist/templates/mobile/expo-base/app/settings/notifications.tsx +3 -0
  571. package/dist/templates/mobile/expo-base/app/settings/theme.tsx +3 -0
  572. package/dist/templates/mobile/expo-base/app.json +31 -0
  573. package/dist/templates/mobile/expo-base/commitlint.config.js +50 -0
  574. package/dist/templates/mobile/expo-base/docs/ARCHITECTURE.md +565 -0
  575. package/dist/templates/mobile/expo-base/docs/CI_CD.md +461 -0
  576. package/dist/templates/mobile/expo-base/docs/COMPONENTS.md +1103 -0
  577. package/dist/templates/mobile/expo-base/docs/CONTRIBUTING.md +733 -0
  578. package/dist/templates/mobile/expo-base/docs/DESIGN_TOKENS.md +832 -0
  579. package/dist/templates/mobile/expo-base/docs/GIT_CONVENTIONS.md +411 -0
  580. package/dist/templates/mobile/expo-base/docs/I18N.md +701 -0
  581. package/dist/templates/mobile/expo-base/docs/TESTING.md +565 -0
  582. package/dist/templates/mobile/expo-base/docs/THEMING.md +753 -0
  583. package/dist/templates/mobile/expo-base/docs/VERSIONING.md +518 -0
  584. package/dist/templates/mobile/expo-base/eslint.config.js +180 -0
  585. package/dist/templates/mobile/expo-base/jest.config.js +51 -0
  586. package/dist/templates/mobile/expo-base/jest.setup.js +106 -0
  587. package/dist/templates/mobile/expo-base/package.json +74 -0
  588. package/dist/templates/mobile/expo-base/pnpm-lock.yaml +11354 -0
  589. package/dist/templates/mobile/expo-base/pnpm-workspace.yaml +4 -0
  590. package/dist/templates/mobile/expo-base/src/__tests__/helpers/test-utils.tsx +77 -0
  591. package/dist/templates/mobile/expo-base/src/__tests__/mocks/api.ts +65 -0
  592. package/dist/templates/mobile/expo-base/src/__tests__/mocks/i18n.ts +22 -0
  593. package/dist/templates/mobile/expo-base/src/__tests__/mocks/index.ts +7 -0
  594. package/dist/templates/mobile/expo-base/src/__tests__/mocks/navigation.ts +47 -0
  595. package/dist/templates/mobile/expo-base/src/__tests__/mocks/theme.ts +46 -0
  596. package/dist/templates/mobile/expo-base/src/assets/images/android-icon-background.png +0 -0
  597. package/dist/templates/mobile/expo-base/src/assets/images/android-icon-foreground.png +0 -0
  598. package/dist/templates/mobile/expo-base/src/assets/images/android-icon-monochrome.png +0 -0
  599. package/dist/templates/mobile/expo-base/src/assets/images/favicon.png +0 -0
  600. package/dist/templates/mobile/expo-base/src/assets/images/icon.png +0 -0
  601. package/dist/templates/mobile/expo-base/src/assets/images/partial-react-logo.png +0 -0
  602. package/dist/templates/mobile/expo-base/src/assets/images/react-logo.png +0 -0
  603. package/dist/templates/mobile/expo-base/src/assets/images/react-logo@2x.png +0 -0
  604. package/dist/templates/mobile/expo-base/src/assets/images/react-logo@3x.png +0 -0
  605. package/dist/templates/mobile/expo-base/src/assets/images/splash-icon.png +0 -0
  606. package/dist/templates/mobile/expo-base/src/components/external-link.tsx +25 -0
  607. package/dist/templates/mobile/expo-base/src/components/feedback/empty-state.tsx +150 -0
  608. package/dist/templates/mobile/expo-base/src/components/feedback/error-boundary.tsx +145 -0
  609. package/dist/templates/mobile/expo-base/src/components/feedback/error-screen.tsx +121 -0
  610. package/dist/templates/mobile/expo-base/src/components/feedback/index.ts +11 -0
  611. package/dist/templates/mobile/expo-base/src/components/feedback/loading.tsx +155 -0
  612. package/dist/templates/mobile/expo-base/src/components/haptic-tab.tsx +18 -0
  613. package/dist/templates/mobile/expo-base/src/components/hello-wave.tsx +19 -0
  614. package/dist/templates/mobile/expo-base/src/components/layout/column.tsx +49 -0
  615. package/dist/templates/mobile/expo-base/src/components/layout/container.tsx +41 -0
  616. package/dist/templates/mobile/expo-base/src/components/layout/index.ts +14 -0
  617. package/dist/templates/mobile/expo-base/src/components/layout/row.tsx +52 -0
  618. package/dist/templates/mobile/expo-base/src/components/layout/screen.tsx +110 -0
  619. package/dist/templates/mobile/expo-base/src/components/layout/section.tsx +37 -0
  620. package/dist/templates/mobile/expo-base/src/components/parallax-scroll-view.tsx +79 -0
  621. package/dist/templates/mobile/expo-base/src/components/themed-text.tsx +60 -0
  622. package/dist/templates/mobile/expo-base/src/components/themed-view.tsx +14 -0
  623. package/dist/templates/mobile/expo-base/src/components/ui/__tests__/button.test.tsx +206 -0
  624. package/dist/templates/mobile/expo-base/src/components/ui/avatar.tsx +141 -0
  625. package/dist/templates/mobile/expo-base/src/components/ui/badge.tsx +175 -0
  626. package/dist/templates/mobile/expo-base/src/components/ui/button.tsx +247 -0
  627. package/dist/templates/mobile/expo-base/src/components/ui/card.tsx +127 -0
  628. package/dist/templates/mobile/expo-base/src/components/ui/collapsible.tsx +45 -0
  629. package/dist/templates/mobile/expo-base/src/components/ui/divider.tsx +50 -0
  630. package/dist/templates/mobile/expo-base/src/components/ui/icon-symbol.ios.tsx +32 -0
  631. package/dist/templates/mobile/expo-base/src/components/ui/icon-symbol.tsx +41 -0
  632. package/dist/templates/mobile/expo-base/src/components/ui/icon.tsx +137 -0
  633. package/dist/templates/mobile/expo-base/src/components/ui/index.ts +20 -0
  634. package/dist/templates/mobile/expo-base/src/components/ui/input.tsx +242 -0
  635. package/dist/templates/mobile/expo-base/src/constants/theme.ts +53 -0
  636. package/dist/templates/mobile/expo-base/src/contexts/auth-context.tsx +246 -0
  637. package/dist/templates/mobile/expo-base/src/contexts/index.ts +8 -0
  638. package/dist/templates/mobile/expo-base/src/contexts/query-client.tsx +43 -0
  639. package/dist/templates/mobile/expo-base/src/contexts/theme-context.tsx +111 -0
  640. package/dist/templates/mobile/expo-base/src/features/auth/forgot-password-screen.tsx +164 -0
  641. package/dist/templates/mobile/expo-base/src/features/auth/index.ts +7 -0
  642. package/dist/templates/mobile/expo-base/src/features/auth/login-screen.tsx +177 -0
  643. package/dist/templates/mobile/expo-base/src/features/auth/register-screen.tsx +220 -0
  644. package/dist/templates/mobile/expo-base/src/features/onboarding/README.md +190 -0
  645. package/dist/templates/mobile/expo-base/src/features/onboarding/index.ts +7 -0
  646. package/dist/templates/mobile/expo-base/src/features/onboarding/onboarding-debug.tsx +120 -0
  647. package/dist/templates/mobile/expo-base/src/features/onboarding/onboarding-screen.tsx +242 -0
  648. package/dist/templates/mobile/expo-base/src/features/onboarding/onboarding-utils.ts +49 -0
  649. package/dist/templates/mobile/expo-base/src/features/profile/change-password-screen.tsx +154 -0
  650. package/dist/templates/mobile/expo-base/src/features/profile/edit-profile-screen.tsx +183 -0
  651. package/dist/templates/mobile/expo-base/src/features/profile/index.ts +7 -0
  652. package/dist/templates/mobile/expo-base/src/features/profile/profile-screen.tsx +177 -0
  653. package/dist/templates/mobile/expo-base/src/features/settings/about-screen.tsx +167 -0
  654. package/dist/templates/mobile/expo-base/src/features/settings/index.ts +9 -0
  655. package/dist/templates/mobile/expo-base/src/features/settings/language-settings-screen.tsx +97 -0
  656. package/dist/templates/mobile/expo-base/src/features/settings/notifications-settings-screen.tsx +128 -0
  657. package/dist/templates/mobile/expo-base/src/features/settings/settings-screen.tsx +141 -0
  658. package/dist/templates/mobile/expo-base/src/features/settings/theme-settings-screen.tsx +149 -0
  659. package/dist/templates/mobile/expo-base/src/hooks/__tests__/use-theme.test.ts +151 -0
  660. package/dist/templates/mobile/expo-base/src/hooks/index.ts +13 -0
  661. package/dist/templates/mobile/expo-base/src/hooks/use-api.ts +206 -0
  662. package/dist/templates/mobile/expo-base/src/hooks/use-auth.ts +7 -0
  663. package/dist/templates/mobile/expo-base/src/hooks/use-color-scheme.ts +19 -0
  664. package/dist/templates/mobile/expo-base/src/hooks/use-color-scheme.web.ts +31 -0
  665. package/dist/templates/mobile/expo-base/src/hooks/use-theme-color.ts +21 -0
  666. package/dist/templates/mobile/expo-base/src/hooks/use-theme.ts +60 -0
  667. package/dist/templates/mobile/expo-base/src/hooks/use-translation.ts +48 -0
  668. package/dist/templates/mobile/expo-base/src/i18n/index.ts +113 -0
  669. package/dist/templates/mobile/expo-base/src/i18n/locales/en-US.json +134 -0
  670. package/dist/templates/mobile/expo-base/src/i18n/locales/es-AR.json +134 -0
  671. package/dist/templates/mobile/expo-base/src/scripts/reset-project.js +112 -0
  672. package/dist/templates/mobile/expo-base/src/services/api/client.ts +190 -0
  673. package/dist/templates/mobile/expo-base/src/services/api/endpoints.ts +45 -0
  674. package/dist/templates/mobile/expo-base/src/services/api/index.ts +7 -0
  675. package/dist/templates/mobile/expo-base/src/services/storage/secure-storage.ts +56 -0
  676. package/dist/templates/mobile/expo-base/src/theme/colors.ts +147 -0
  677. package/dist/templates/mobile/expo-base/src/theme/index.ts +40 -0
  678. package/dist/templates/mobile/expo-base/src/theme/semantic-colors.ts +221 -0
  679. package/dist/templates/mobile/expo-base/src/theme/shadows.ts +123 -0
  680. package/dist/templates/mobile/expo-base/src/theme/spacing.ts +118 -0
  681. package/dist/templates/mobile/expo-base/src/theme/theme-config.ts +111 -0
  682. package/dist/templates/mobile/expo-base/src/theme/tokens.ts +218 -0
  683. package/dist/templates/mobile/expo-base/src/theme/typography.ts +152 -0
  684. package/dist/templates/mobile/expo-base/src/types/index.ts +6 -0
  685. package/dist/templates/mobile/expo-base/src/types/models.ts +153 -0
  686. package/dist/templates/mobile/expo-base/src/types/navigation.ts +67 -0
  687. package/dist/templates/mobile/expo-base/src/utils/__tests__/validators.test.ts +312 -0
  688. package/dist/templates/mobile/expo-base/src/utils/constants.ts +167 -0
  689. package/dist/templates/mobile/expo-base/src/utils/formatters.ts +222 -0
  690. package/dist/templates/mobile/expo-base/src/utils/index.ts +7 -0
  691. package/dist/templates/mobile/expo-base/src/utils/validators.ts +187 -0
  692. package/dist/templates/mobile/expo-base/tsconfig.json +26 -0
  693. package/dist/test-cli.js +40 -0
  694. package/dist/types/index.js +1 -0
  695. package/package.json +25 -0
  696. package/templates/backend/.gitkeep +1 -0
  697. package/templates/backend/nestjs-api-postgres/.cursor/commands/new-endpoint.md +209 -0
  698. package/templates/backend/nestjs-api-postgres/.cursor/commands/new-model.md +201 -0
  699. package/templates/backend/nestjs-api-postgres/.cursor/rules/api-rest.mdc +126 -0
  700. package/templates/backend/nestjs-api-postgres/.cursor/rules/authentication-security.mdc +86 -0
  701. package/templates/backend/nestjs-api-postgres/.cursor/rules/dto-validation.mdc +93 -0
  702. package/templates/backend/nestjs-api-postgres/.cursor/rules/general-rules.mdc +126 -0
  703. package/templates/backend/nestjs-api-postgres/.cursor/rules/nestjs-architecture.mdc +83 -0
  704. package/templates/backend/nestjs-api-postgres/.cursor/rules/prisma-standards.mdc +90 -0
  705. package/templates/backend/nestjs-api-postgres/.cursor/rules/swagger-documentation.mdc +90 -0
  706. package/templates/backend/nestjs-api-postgres/.cursor/skills/api-security-best-practices/SKILL.md +907 -0
  707. package/templates/backend/nestjs-api-postgres/.cursor/skills/docker-expert/SKILL.md +409 -0
  708. package/templates/backend/nestjs-api-postgres/.cursor/skills/nestjs-expert/SKILL.md +552 -0
  709. package/templates/backend/nestjs-api-postgres/.cursor/skills/nestjs-the-best-practices/AGENTS.md +5958 -0
  710. package/templates/backend/nestjs-api-postgres/.cursor/skills/nestjs-the-best-practices/SKILL.md +130 -0
  711. package/templates/backend/nestjs-api-postgres/.cursor/skills/nodejs-best-practices/SKILL.md +333 -0
  712. package/templates/backend/nestjs-api-postgres/.cursor/skills/postgresql-table-design/SKILL.md +202 -0
  713. package/templates/backend/nestjs-api-postgres/.cursor/skills/prisma-expert/SKILL.md +355 -0
  714. package/templates/backend/nestjs-api-postgres/.dockerignore +50 -0
  715. package/templates/backend/nestjs-api-postgres/.env.example +18 -0
  716. package/templates/backend/nestjs-api-postgres/.env.test +18 -0
  717. package/templates/backend/nestjs-api-postgres/.prettierrc +4 -0
  718. package/templates/backend/nestjs-api-postgres/README.md +1502 -0
  719. package/templates/backend/nestjs-api-postgres/docker-compose.yml +24 -0
  720. package/templates/backend/nestjs-api-postgres/eslint.config.mjs +41 -0
  721. package/templates/backend/nestjs-api-postgres/nest-cli.json +8 -0
  722. package/templates/backend/nestjs-api-postgres/package.json +107 -0
  723. package/templates/backend/nestjs-api-postgres/prisma/migrations/20260126125423_init/migration.sql +84 -0
  724. package/templates/backend/nestjs-api-postgres/prisma/migrations/migration_lock.toml +3 -0
  725. package/templates/backend/nestjs-api-postgres/prisma/schema.prisma +76 -0
  726. package/templates/backend/nestjs-api-postgres/prisma/seed.ts +220 -0
  727. package/templates/backend/nestjs-api-postgres/prisma.config.ts +10 -0
  728. package/templates/backend/nestjs-api-postgres/src/app.module.ts +39 -0
  729. package/templates/backend/nestjs-api-postgres/src/app.service.ts +8 -0
  730. package/templates/backend/nestjs-api-postgres/src/auth/auth.controller.ts +36 -0
  731. package/templates/backend/nestjs-api-postgres/src/auth/auth.module.ts +22 -0
  732. package/templates/backend/nestjs-api-postgres/src/auth/auth.service.ts +63 -0
  733. package/templates/backend/nestjs-api-postgres/src/auth/decorators/roles.decorator.ts +5 -0
  734. package/templates/backend/nestjs-api-postgres/src/auth/dto/login-response.dto.ts +23 -0
  735. package/templates/backend/nestjs-api-postgres/src/auth/dto/login.dto.ts +27 -0
  736. package/templates/backend/nestjs-api-postgres/src/auth/guards/jwt-auth.guard.ts +20 -0
  737. package/templates/backend/nestjs-api-postgres/src/auth/guards/roles.guard.ts +23 -0
  738. package/templates/backend/nestjs-api-postgres/src/auth/strategies/jwt.strategy.ts +32 -0
  739. package/templates/backend/nestjs-api-postgres/src/auth/types.ts +18 -0
  740. package/templates/backend/nestjs-api-postgres/src/common/dto/paginated-response.dto.ts +16 -0
  741. package/templates/backend/nestjs-api-postgres/src/common/dto/pagination.dto.ts +31 -0
  742. package/templates/backend/nestjs-api-postgres/src/common/filters/http-exception.filter.ts +53 -0
  743. package/templates/backend/nestjs-api-postgres/src/config/env.validation.ts +41 -0
  744. package/templates/backend/nestjs-api-postgres/src/health/health.controller.ts +35 -0
  745. package/templates/backend/nestjs-api-postgres/src/health/health.module.ts +7 -0
  746. package/templates/backend/nestjs-api-postgres/src/main.ts +87 -0
  747. package/templates/backend/nestjs-api-postgres/src/posts/dto/create-post.dto.ts +32 -0
  748. package/templates/backend/nestjs-api-postgres/src/posts/dto/post-response.dto.ts +41 -0
  749. package/templates/backend/nestjs-api-postgres/src/posts/dto/update-post.dto.ts +31 -0
  750. package/templates/backend/nestjs-api-postgres/src/posts/posts.controller.ts +161 -0
  751. package/templates/backend/nestjs-api-postgres/src/posts/posts.module.ts +12 -0
  752. package/templates/backend/nestjs-api-postgres/src/posts/posts.service.ts +171 -0
  753. package/templates/backend/nestjs-api-postgres/src/prisma/prisma.module.ts +9 -0
  754. package/templates/backend/nestjs-api-postgres/src/prisma/prisma.service.ts +27 -0
  755. package/templates/backend/nestjs-api-postgres/src/users/constants/settings.constants.ts +9 -0
  756. package/templates/backend/nestjs-api-postgres/src/users/dto/profile-response.dto.ts +39 -0
  757. package/templates/backend/nestjs-api-postgres/src/users/dto/settings-response.dto.ts +18 -0
  758. package/templates/backend/nestjs-api-postgres/src/users/dto/update-profile.dto.ts +48 -0
  759. package/templates/backend/nestjs-api-postgres/src/users/dto/update-settings.dto.ts +40 -0
  760. package/templates/backend/nestjs-api-postgres/src/users/dto/user-response.dto.ts +18 -0
  761. package/templates/backend/nestjs-api-postgres/src/users/profile.service.ts +49 -0
  762. package/templates/backend/nestjs-api-postgres/src/users/settings.service.ts +82 -0
  763. package/templates/backend/nestjs-api-postgres/src/users/users.controller.ts +102 -0
  764. package/templates/backend/nestjs-api-postgres/src/users/users.module.ts +14 -0
  765. package/templates/backend/nestjs-api-postgres/src/users/users.service.ts +27 -0
  766. package/templates/backend/nestjs-api-postgres/test/README.md +412 -0
  767. package/templates/backend/nestjs-api-postgres/test/e2e/auth.e2e-spec.ts +147 -0
  768. package/templates/backend/nestjs-api-postgres/test/e2e/health.e2e-spec.ts +62 -0
  769. package/templates/backend/nestjs-api-postgres/test/e2e/posts.e2e-spec.ts +407 -0
  770. package/templates/backend/nestjs-api-postgres/test/e2e/users.e2e-spec.ts +287 -0
  771. package/templates/backend/nestjs-api-postgres/test/fixtures/test-data.ts +109 -0
  772. package/templates/backend/nestjs-api-postgres/test/helpers/auth.helper.ts +54 -0
  773. package/templates/backend/nestjs-api-postgres/test/helpers/db.helper.ts +73 -0
  774. package/templates/backend/nestjs-api-postgres/test/jest-e2e.json +12 -0
  775. package/templates/backend/nestjs-api-postgres/test/setup-e2e.ts +8 -0
  776. package/templates/backend/nestjs-api-postgres/test/unit/app.service.spec.ts +24 -0
  777. package/templates/backend/nestjs-api-postgres/test/unit/auth.controller.spec.ts +91 -0
  778. package/templates/backend/nestjs-api-postgres/test/unit/auth.service.spec.ts +161 -0
  779. package/templates/backend/nestjs-api-postgres/test/unit/health.controller.spec.ts +78 -0
  780. package/templates/backend/nestjs-api-postgres/test/unit/http-exception.filter.spec.ts +150 -0
  781. package/templates/backend/nestjs-api-postgres/test/unit/jwt-auth.guard.spec.ts +50 -0
  782. package/templates/backend/nestjs-api-postgres/test/unit/jwt.strategy.spec.ts +41 -0
  783. package/templates/backend/nestjs-api-postgres/test/unit/posts.controller.spec.ts +249 -0
  784. package/templates/backend/nestjs-api-postgres/test/unit/posts.service.spec.ts +328 -0
  785. package/templates/backend/nestjs-api-postgres/test/unit/profile.service.spec.ts +146 -0
  786. package/templates/backend/nestjs-api-postgres/test/unit/settings.service.spec.ts +242 -0
  787. package/templates/backend/nestjs-api-postgres/test/unit/users.controller.spec.ts +178 -0
  788. package/templates/backend/nestjs-api-postgres/test/unit/users.service.spec.ts +96 -0
  789. package/templates/backend/nestjs-api-postgres/tsconfig.build.json +4 -0
  790. package/templates/backend/nestjs-api-postgres/tsconfig.json +28 -0
  791. package/templates/backend/nestjs-api-sqlite/.cursor/commands/new-endpoint.md +209 -0
  792. package/templates/backend/nestjs-api-sqlite/.cursor/commands/new-model.md +201 -0
  793. package/templates/backend/nestjs-api-sqlite/.cursor/rules/api-rest.mdc +126 -0
  794. package/templates/backend/nestjs-api-sqlite/.cursor/rules/authentication-security.mdc +86 -0
  795. package/templates/backend/nestjs-api-sqlite/.cursor/rules/dto-validation.mdc +93 -0
  796. package/templates/backend/nestjs-api-sqlite/.cursor/rules/general-rules.mdc +126 -0
  797. package/templates/backend/nestjs-api-sqlite/.cursor/rules/nestjs-architecture.mdc +83 -0
  798. package/templates/backend/nestjs-api-sqlite/.cursor/rules/prisma-standards.mdc +90 -0
  799. package/templates/backend/nestjs-api-sqlite/.cursor/rules/swagger-documentation.mdc +90 -0
  800. package/templates/backend/nestjs-api-sqlite/.cursor/skills/api-security-best-practices/SKILL.md +907 -0
  801. package/templates/backend/nestjs-api-sqlite/.cursor/skills/nestjs-expert/SKILL.md +552 -0
  802. package/templates/backend/nestjs-api-sqlite/.cursor/skills/nestjs-the-best-practices/AGENTS.md +5958 -0
  803. package/templates/backend/nestjs-api-sqlite/.cursor/skills/nestjs-the-best-practices/SKILL.md +130 -0
  804. package/templates/backend/nestjs-api-sqlite/.cursor/skills/nodejs-best-practices/SKILL.md +333 -0
  805. package/templates/backend/nestjs-api-sqlite/.cursor/skills/prisma-expert/SKILL.md +355 -0
  806. package/templates/backend/nestjs-api-sqlite/.env.example +4 -0
  807. package/templates/backend/nestjs-api-sqlite/.env.test +4 -0
  808. package/templates/backend/nestjs-api-sqlite/.prettierrc +4 -0
  809. package/templates/backend/nestjs-api-sqlite/README.md +1464 -0
  810. package/templates/backend/nestjs-api-sqlite/eslint.config.mjs +41 -0
  811. package/templates/backend/nestjs-api-sqlite/nest-cli.json +8 -0
  812. package/templates/backend/nestjs-api-sqlite/package.json +105 -0
  813. package/templates/backend/nestjs-api-sqlite/pnpm-lock.yaml +7630 -0
  814. package/templates/backend/nestjs-api-sqlite/prisma/migrations/20260123190258_init/migration.sql +12 -0
  815. package/templates/backend/nestjs-api-sqlite/prisma/migrations/20260123205000_add_roles_and_posts/migration.sql +32 -0
  816. package/templates/backend/nestjs-api-sqlite/prisma/migrations/20260124163749_init_with_profile_and_settings/migration.sql +33 -0
  817. package/templates/backend/nestjs-api-sqlite/prisma/migrations/20260124190929_add_render_model/migration.sql +13 -0
  818. package/templates/backend/nestjs-api-sqlite/prisma/migrations/20260124200534_add_post_indexes/migration.sql +16 -0
  819. package/templates/backend/nestjs-api-sqlite/prisma/migrations/migration_lock.toml +3 -0
  820. package/templates/backend/nestjs-api-sqlite/prisma/schema.prisma +76 -0
  821. package/templates/backend/nestjs-api-sqlite/prisma/seed.ts +218 -0
  822. package/templates/backend/nestjs-api-sqlite/prisma.config.ts +10 -0
  823. package/templates/backend/nestjs-api-sqlite/src/app.module.ts +39 -0
  824. package/templates/backend/nestjs-api-sqlite/src/app.service.ts +8 -0
  825. package/templates/backend/nestjs-api-sqlite/src/auth/auth.controller.ts +36 -0
  826. package/templates/backend/nestjs-api-sqlite/src/auth/auth.module.ts +22 -0
  827. package/templates/backend/nestjs-api-sqlite/src/auth/auth.service.ts +63 -0
  828. package/templates/backend/nestjs-api-sqlite/src/auth/decorators/roles.decorator.ts +5 -0
  829. package/templates/backend/nestjs-api-sqlite/src/auth/dto/login-response.dto.ts +23 -0
  830. package/templates/backend/nestjs-api-sqlite/src/auth/dto/login.dto.ts +27 -0
  831. package/templates/backend/nestjs-api-sqlite/src/auth/guards/jwt-auth.guard.ts +20 -0
  832. package/templates/backend/nestjs-api-sqlite/src/auth/guards/roles.guard.ts +23 -0
  833. package/templates/backend/nestjs-api-sqlite/src/auth/strategies/jwt.strategy.ts +32 -0
  834. package/templates/backend/nestjs-api-sqlite/src/auth/types.ts +18 -0
  835. package/templates/backend/nestjs-api-sqlite/src/common/dto/paginated-response.dto.ts +16 -0
  836. package/templates/backend/nestjs-api-sqlite/src/common/dto/pagination.dto.ts +31 -0
  837. package/templates/backend/nestjs-api-sqlite/src/common/filters/http-exception.filter.ts +53 -0
  838. package/templates/backend/nestjs-api-sqlite/src/config/env.validation.ts +35 -0
  839. package/templates/backend/nestjs-api-sqlite/src/health/health.controller.ts +35 -0
  840. package/templates/backend/nestjs-api-sqlite/src/health/health.module.ts +7 -0
  841. package/templates/backend/nestjs-api-sqlite/src/main.ts +87 -0
  842. package/templates/backend/nestjs-api-sqlite/src/posts/dto/create-post.dto.ts +32 -0
  843. package/templates/backend/nestjs-api-sqlite/src/posts/dto/post-response.dto.ts +41 -0
  844. package/templates/backend/nestjs-api-sqlite/src/posts/dto/update-post.dto.ts +31 -0
  845. package/templates/backend/nestjs-api-sqlite/src/posts/posts.controller.ts +161 -0
  846. package/templates/backend/nestjs-api-sqlite/src/posts/posts.module.ts +12 -0
  847. package/templates/backend/nestjs-api-sqlite/src/posts/posts.service.ts +171 -0
  848. package/templates/backend/nestjs-api-sqlite/src/prisma/prisma.module.ts +9 -0
  849. package/templates/backend/nestjs-api-sqlite/src/prisma/prisma.service.ts +29 -0
  850. package/templates/backend/nestjs-api-sqlite/src/users/constants/settings.constants.ts +9 -0
  851. package/templates/backend/nestjs-api-sqlite/src/users/dto/profile-response.dto.ts +39 -0
  852. package/templates/backend/nestjs-api-sqlite/src/users/dto/settings-response.dto.ts +18 -0
  853. package/templates/backend/nestjs-api-sqlite/src/users/dto/update-profile.dto.ts +48 -0
  854. package/templates/backend/nestjs-api-sqlite/src/users/dto/update-settings.dto.ts +40 -0
  855. package/templates/backend/nestjs-api-sqlite/src/users/dto/user-response.dto.ts +18 -0
  856. package/templates/backend/nestjs-api-sqlite/src/users/profile.service.ts +49 -0
  857. package/templates/backend/nestjs-api-sqlite/src/users/settings.service.ts +82 -0
  858. package/templates/backend/nestjs-api-sqlite/src/users/users.controller.ts +102 -0
  859. package/templates/backend/nestjs-api-sqlite/src/users/users.module.ts +14 -0
  860. package/templates/backend/nestjs-api-sqlite/src/users/users.service.ts +27 -0
  861. package/templates/backend/nestjs-api-sqlite/test/README.md +412 -0
  862. package/templates/backend/nestjs-api-sqlite/test/e2e/auth.e2e-spec.ts +147 -0
  863. package/templates/backend/nestjs-api-sqlite/test/e2e/health.e2e-spec.ts +62 -0
  864. package/templates/backend/nestjs-api-sqlite/test/e2e/posts.e2e-spec.ts +407 -0
  865. package/templates/backend/nestjs-api-sqlite/test/e2e/users.e2e-spec.ts +287 -0
  866. package/templates/backend/nestjs-api-sqlite/test/fixtures/test-data.ts +109 -0
  867. package/templates/backend/nestjs-api-sqlite/test/helpers/auth.helper.ts +54 -0
  868. package/templates/backend/nestjs-api-sqlite/test/helpers/db.helper.ts +72 -0
  869. package/templates/backend/nestjs-api-sqlite/test/jest-e2e.json +12 -0
  870. package/templates/backend/nestjs-api-sqlite/test/setup-e2e.ts +8 -0
  871. package/templates/backend/nestjs-api-sqlite/test/unit/app.service.spec.ts +24 -0
  872. package/templates/backend/nestjs-api-sqlite/test/unit/auth.controller.spec.ts +91 -0
  873. package/templates/backend/nestjs-api-sqlite/test/unit/auth.service.spec.ts +161 -0
  874. package/templates/backend/nestjs-api-sqlite/test/unit/health.controller.spec.ts +78 -0
  875. package/templates/backend/nestjs-api-sqlite/test/unit/http-exception.filter.spec.ts +150 -0
  876. package/templates/backend/nestjs-api-sqlite/test/unit/jwt-auth.guard.spec.ts +50 -0
  877. package/templates/backend/nestjs-api-sqlite/test/unit/jwt.strategy.spec.ts +41 -0
  878. package/templates/backend/nestjs-api-sqlite/test/unit/posts.controller.spec.ts +249 -0
  879. package/templates/backend/nestjs-api-sqlite/test/unit/posts.service.spec.ts +328 -0
  880. package/templates/backend/nestjs-api-sqlite/test/unit/profile.service.spec.ts +146 -0
  881. package/templates/backend/nestjs-api-sqlite/test/unit/settings.service.spec.ts +242 -0
  882. package/templates/backend/nestjs-api-sqlite/test/unit/users.controller.spec.ts +178 -0
  883. package/templates/backend/nestjs-api-sqlite/test/unit/users.service.spec.ts +96 -0
  884. package/templates/backend/nestjs-api-sqlite/tsconfig.build.json +4 -0
  885. package/templates/backend/nestjs-api-sqlite/tsconfig.json +28 -0
  886. package/templates/frontend/angular-base/.agents/skills/angular-component/SKILL.md +288 -0
  887. package/templates/frontend/angular-base/.agents/skills/angular-component/references/component-patterns.md +358 -0
  888. package/templates/frontend/angular-base/.agents/skills/angular-di/SKILL.md +387 -0
  889. package/templates/frontend/angular-base/.agents/skills/angular-di/references/di-patterns.md +519 -0
  890. package/templates/frontend/angular-base/.agents/skills/angular-directives/SKILL.md +437 -0
  891. package/templates/frontend/angular-base/.agents/skills/angular-directives/references/directive-patterns.md +570 -0
  892. package/templates/frontend/angular-base/.agents/skills/angular-forms/SKILL.md +434 -0
  893. package/templates/frontend/angular-base/.agents/skills/angular-forms/references/form-patterns.md +398 -0
  894. package/templates/frontend/angular-base/.agents/skills/angular-http/SKILL.md +366 -0
  895. package/templates/frontend/angular-base/.agents/skills/angular-http/references/http-patterns.md +448 -0
  896. package/templates/frontend/angular-base/.agents/skills/angular-routing/SKILL.md +395 -0
  897. package/templates/frontend/angular-base/.agents/skills/angular-routing/references/routing-patterns.md +472 -0
  898. package/templates/frontend/angular-base/.agents/skills/angular-signals/SKILL.md +302 -0
  899. package/templates/frontend/angular-base/.agents/skills/angular-signals/references/signal-patterns.md +404 -0
  900. package/templates/frontend/angular-base/.agents/skills/angular-ssr/SKILL.md +435 -0
  901. package/templates/frontend/angular-base/.agents/skills/angular-ssr/references/ssr-patterns.md +497 -0
  902. package/templates/frontend/angular-base/.agents/skills/angular-testing/SKILL.md +660 -0
  903. package/templates/frontend/angular-base/.agents/skills/angular-testing/references/testing-patterns.md +707 -0
  904. package/templates/frontend/angular-base/.agents/skills/angular-tooling/SKILL.md +352 -0
  905. package/templates/frontend/angular-base/.agents/skills/angular-tooling/references/tooling-patterns.md +448 -0
  906. package/templates/frontend/angular-base/.agents/skills/tailwindcss-accessibility/SKILL.md +780 -0
  907. package/templates/frontend/angular-base/.agents/skills/tailwindcss-advanced-components/SKILL.md +718 -0
  908. package/templates/frontend/angular-base/.agents/skills/tailwindcss-advanced-design-systems/SKILL.md +612 -0
  909. package/templates/frontend/angular-base/.agents/skills/tailwindcss-advanced-layouts/SKILL.md +594 -0
  910. package/templates/frontend/angular-base/.agents/skills/tailwindcss-animations/SKILL.md +432 -0
  911. package/templates/frontend/angular-base/.agents/skills/tailwindcss-animations/references/animation-patterns.md +427 -0
  912. package/templates/frontend/angular-base/.agents/skills/tailwindcss-debugging/SKILL.md +354 -0
  913. package/templates/frontend/angular-base/.agents/skills/tailwindcss-debugging/references/troubleshooting-guide.md +306 -0
  914. package/templates/frontend/angular-base/.agents/skills/tailwindcss-framework-integration/SKILL.md +578 -0
  915. package/templates/frontend/angular-base/.agents/skills/tailwindcss-framework-integration/references/react-patterns.md +353 -0
  916. package/templates/frontend/angular-base/.agents/skills/tailwindcss-fundamentals-v4/SKILL.md +608 -0
  917. package/templates/frontend/angular-base/.agents/skills/tailwindcss-fundamentals-v4/references/advanced-theme-patterns.md +215 -0
  918. package/templates/frontend/angular-base/.agents/skills/tailwindcss-fundamentals-v4/references/custom-utilities-guide.md +281 -0
  919. package/templates/frontend/angular-base/.agents/skills/tailwindcss-mobile-first/SKILL.md +768 -0
  920. package/templates/frontend/angular-base/.agents/skills/tailwindcss-performance/SKILL.md +374 -0
  921. package/templates/frontend/angular-base/.agents/skills/tailwindcss-performance/references/bundle-optimization.md +244 -0
  922. package/templates/frontend/angular-base/.agents/skills/tailwindcss-plugins/SKILL.md +505 -0
  923. package/templates/frontend/angular-base/.agents/skills/tailwindcss-responsive-darkmode/SKILL.md +601 -0
  924. package/templates/frontend/angular-base/.agents/skills/tailwindcss-responsive-darkmode/references/advanced-responsive-patterns.md +485 -0
  925. package/templates/frontend/angular-base/.agents/skills/web-design-guidelines/SKILL.md +39 -0
  926. package/templates/frontend/angular-base/.cursor/mcp.json +12 -0
  927. package/templates/frontend/angular-base/.cursor/rules/angular-expert.mdc +153 -0
  928. package/templates/frontend/angular-base/.editorconfig +17 -0
  929. package/templates/frontend/angular-base/.eslintrc.json +52 -0
  930. package/templates/frontend/angular-base/.github/workflows/ci.yml +122 -0
  931. package/templates/frontend/angular-base/.husky/pre-commit +1 -0
  932. package/templates/frontend/angular-base/.husky/pre-push +1 -0
  933. package/templates/frontend/angular-base/.postcssrc.json +5 -0
  934. package/templates/frontend/angular-base/.prettierignore +8 -0
  935. package/templates/frontend/angular-base/.prettierrc.json +15 -0
  936. package/templates/frontend/angular-base/.vscode/extensions.json +4 -0
  937. package/templates/frontend/angular-base/.vscode/launch.json +20 -0
  938. package/templates/frontend/angular-base/.vscode/mcp.json +9 -0
  939. package/templates/frontend/angular-base/.vscode/tasks.json +42 -0
  940. package/templates/frontend/angular-base/CONTRIBUTING.md +230 -0
  941. package/templates/frontend/angular-base/README.md +383 -0
  942. package/templates/frontend/angular-base/angular.json +84 -0
  943. package/templates/frontend/angular-base/cypress/e2e/app.cy.ts +39 -0
  944. package/templates/frontend/angular-base/cypress/e2e/auth.cy.ts +196 -0
  945. package/templates/frontend/angular-base/cypress/e2e/dashboard.cy.ts +56 -0
  946. package/templates/frontend/angular-base/cypress/e2e/home.cy.ts +35 -0
  947. package/templates/frontend/angular-base/cypress/fixtures/example.json +4 -0
  948. package/templates/frontend/angular-base/cypress/support/commands.ts +8 -0
  949. package/templates/frontend/angular-base/cypress/support/e2e.ts +11 -0
  950. package/templates/frontend/angular-base/cypress.config.ts +11 -0
  951. package/templates/frontend/angular-base/docs/ARCHITECTURE.md +337 -0
  952. package/templates/frontend/angular-base/docs/AUTHENTICATION.md +491 -0
  953. package/templates/frontend/angular-base/docs/DEPLOYMENT.md +507 -0
  954. package/templates/frontend/angular-base/docs/FEATURES.md +404 -0
  955. package/templates/frontend/angular-base/docs/TESTING.md +418 -0
  956. package/templates/frontend/angular-base/docs/THEMING.md +333 -0
  957. package/templates/frontend/angular-base/docs/UI_LIBRARIES.md +380 -0
  958. package/templates/frontend/angular-base/docs/USER_PROFILE_FLOW.md +431 -0
  959. package/templates/frontend/angular-base/package-lock.json +13321 -0
  960. package/templates/frontend/angular-base/package.json +93 -0
  961. package/templates/frontend/angular-base/public/favicon.ico +0 -0
  962. package/templates/frontend/angular-base/src/app/app.config.server.ts +14 -0
  963. package/templates/frontend/angular-base/src/app/app.config.ts +32 -0
  964. package/templates/frontend/angular-base/src/app/app.css +0 -0
  965. package/templates/frontend/angular-base/src/app/app.html +1 -0
  966. package/templates/frontend/angular-base/src/app/app.routes.server.ts +28 -0
  967. package/templates/frontend/angular-base/src/app/app.routes.ts +67 -0
  968. package/templates/frontend/angular-base/src/app/app.spec.ts +23 -0
  969. package/templates/frontend/angular-base/src/app/app.ts +12 -0
  970. package/templates/frontend/angular-base/src/app/core/guards/admin.guard.ts +16 -0
  971. package/templates/frontend/angular-base/src/app/core/guards/auth.guard.spec.ts +43 -0
  972. package/templates/frontend/angular-base/src/app/core/guards/auth.guard.ts +15 -0
  973. package/templates/frontend/angular-base/src/app/core/index.ts +10 -0
  974. package/templates/frontend/angular-base/src/app/core/interceptors/http-error.interceptor.spec.ts +43 -0
  975. package/templates/frontend/angular-base/src/app/core/interceptors/http-error.interceptor.ts +53 -0
  976. package/templates/frontend/angular-base/src/app/core/services/auth.service.spec.ts +33 -0
  977. package/templates/frontend/angular-base/src/app/core/services/auth.service.ts +91 -0
  978. package/templates/frontend/angular-base/src/app/core/services/theme.service.spec.ts +33 -0
  979. package/templates/frontend/angular-base/src/app/core/services/theme.service.ts +136 -0
  980. package/templates/frontend/angular-base/src/app/features/admin/index.ts +3 -0
  981. package/templates/frontend/angular-base/src/app/features/admin/routes.ts +21 -0
  982. package/templates/frontend/angular-base/src/app/features/admin/users/models/admin-user.model.ts +32 -0
  983. package/templates/frontend/angular-base/src/app/features/admin/users/pages/user-form.page.ts +279 -0
  984. package/templates/frontend/angular-base/src/app/features/admin/users/pages/user-list.page.ts +336 -0
  985. package/templates/frontend/angular-base/src/app/features/admin/users/services/admin-user.service.ts +151 -0
  986. package/templates/frontend/angular-base/src/app/features/auth/index.ts +2 -0
  987. package/templates/frontend/angular-base/src/app/features/auth/models/auth.model.ts +39 -0
  988. package/templates/frontend/angular-base/src/app/features/auth/pages/login.page.spec.ts +44 -0
  989. package/templates/frontend/angular-base/src/app/features/auth/pages/login.page.ts +187 -0
  990. package/templates/frontend/angular-base/src/app/features/auth/pages/password-recovery.page.spec.ts +48 -0
  991. package/templates/frontend/angular-base/src/app/features/auth/pages/password-recovery.page.ts +171 -0
  992. package/templates/frontend/angular-base/src/app/features/auth/pages/signup.page.spec.ts +53 -0
  993. package/templates/frontend/angular-base/src/app/features/auth/pages/signup.page.ts +269 -0
  994. package/templates/frontend/angular-base/src/app/features/auth/routes.ts +22 -0
  995. package/templates/frontend/angular-base/src/app/features/customers/index.ts +3 -0
  996. package/templates/frontend/angular-base/src/app/features/customers/models/customer.model.ts +41 -0
  997. package/templates/frontend/angular-base/src/app/features/customers/pages/customer-detail.page.ts +299 -0
  998. package/templates/frontend/angular-base/src/app/features/customers/pages/customer-form.page.ts +302 -0
  999. package/templates/frontend/angular-base/src/app/features/customers/pages/customer-list.page.ts +439 -0
  1000. package/templates/frontend/angular-base/src/app/features/customers/routes.ts +21 -0
  1001. package/templates/frontend/angular-base/src/app/features/customers/services/customer.service.ts +162 -0
  1002. package/templates/frontend/angular-base/src/app/features/dashboard/components/stats-card/stats-card.component.spec.ts +23 -0
  1003. package/templates/frontend/angular-base/src/app/features/dashboard/components/stats-card/stats-card.component.ts +52 -0
  1004. package/templates/frontend/angular-base/src/app/features/dashboard/index.ts +1 -0
  1005. package/templates/frontend/angular-base/src/app/features/dashboard/pages/dashboard.page.spec.ts +21 -0
  1006. package/templates/frontend/angular-base/src/app/features/dashboard/pages/dashboard.page.ts +122 -0
  1007. package/templates/frontend/angular-base/src/app/features/dashboard/routes.ts +8 -0
  1008. package/templates/frontend/angular-base/src/app/features/dashboard/services/dashboard.service.spec.ts +37 -0
  1009. package/templates/frontend/angular-base/src/app/features/dashboard/services/dashboard.service.ts +48 -0
  1010. package/templates/frontend/angular-base/src/app/features/errors/index.ts +1 -0
  1011. package/templates/frontend/angular-base/src/app/features/errors/pages/forbidden.page.ts +50 -0
  1012. package/templates/frontend/angular-base/src/app/features/errors/pages/maintenance.page.ts +46 -0
  1013. package/templates/frontend/angular-base/src/app/features/errors/pages/not-found.page.ts +49 -0
  1014. package/templates/frontend/angular-base/src/app/features/errors/pages/server-error.page.ts +60 -0
  1015. package/templates/frontend/angular-base/src/app/features/errors/routes.ts +25 -0
  1016. package/templates/frontend/angular-base/src/app/features/home/index.ts +1 -0
  1017. package/templates/frontend/angular-base/src/app/features/home/pages/home.page.spec.ts +23 -0
  1018. package/templates/frontend/angular-base/src/app/features/home/pages/home.page.ts +105 -0
  1019. package/templates/frontend/angular-base/src/app/features/home/routes.ts +8 -0
  1020. package/templates/frontend/angular-base/src/app/features/projects/index.ts +3 -0
  1021. package/templates/frontend/angular-base/src/app/features/projects/models/project.model.ts +48 -0
  1022. package/templates/frontend/angular-base/src/app/features/projects/pages/project-detail.page.ts +444 -0
  1023. package/templates/frontend/angular-base/src/app/features/projects/pages/project-form.page.ts +393 -0
  1024. package/templates/frontend/angular-base/src/app/features/projects/pages/project-list.page.ts +411 -0
  1025. package/templates/frontend/angular-base/src/app/features/projects/routes.ts +21 -0
  1026. package/templates/frontend/angular-base/src/app/features/projects/services/project.service.ts +227 -0
  1027. package/templates/frontend/angular-base/src/app/features/reports/index.ts +3 -0
  1028. package/templates/frontend/angular-base/src/app/features/reports/models/report.model.ts +27 -0
  1029. package/templates/frontend/angular-base/src/app/features/reports/pages/analytics.page.html +246 -0
  1030. package/templates/frontend/angular-base/src/app/features/reports/pages/analytics.page.ts +135 -0
  1031. package/templates/frontend/angular-base/src/app/features/reports/routes.ts +13 -0
  1032. package/templates/frontend/angular-base/src/app/features/reports/services/report.service.ts +141 -0
  1033. package/templates/frontend/angular-base/src/app/features/user/index.ts +3 -0
  1034. package/templates/frontend/angular-base/src/app/features/user/models/user.model.ts +23 -0
  1035. package/templates/frontend/angular-base/src/app/features/user/pages/privacy.page.spec.ts +27 -0
  1036. package/templates/frontend/angular-base/src/app/features/user/pages/privacy.page.ts +414 -0
  1037. package/templates/frontend/angular-base/src/app/features/user/pages/profile.page.spec.ts +39 -0
  1038. package/templates/frontend/angular-base/src/app/features/user/pages/profile.page.ts +232 -0
  1039. package/templates/frontend/angular-base/src/app/features/user/pages/settings.page.spec.ts +28 -0
  1040. package/templates/frontend/angular-base/src/app/features/user/pages/settings.page.ts +284 -0
  1041. package/templates/frontend/angular-base/src/app/features/user/routes.ts +21 -0
  1042. package/templates/frontend/angular-base/src/app/features/user/services/user.service.ts +74 -0
  1043. package/templates/frontend/angular-base/src/app/layout/footer/footer.component.spec.ts +25 -0
  1044. package/templates/frontend/angular-base/src/app/layout/footer/footer.component.ts +67 -0
  1045. package/templates/frontend/angular-base/src/app/layout/index.ts +3 -0
  1046. package/templates/frontend/angular-base/src/app/layout/main-layout/main-layout.component.spec.ts +23 -0
  1047. package/templates/frontend/angular-base/src/app/layout/main-layout/main-layout.component.ts +30 -0
  1048. package/templates/frontend/angular-base/src/app/layout/navbar/navbar.component.spec.ts +23 -0
  1049. package/templates/frontend/angular-base/src/app/layout/navbar/navbar.component.ts +293 -0
  1050. package/templates/frontend/angular-base/src/app/shared/components/badge/badge.component.spec.ts +36 -0
  1051. package/templates/frontend/angular-base/src/app/shared/components/badge/badge.component.ts +70 -0
  1052. package/templates/frontend/angular-base/src/app/shared/components/button/button.component.spec.ts +44 -0
  1053. package/templates/frontend/angular-base/src/app/shared/components/button/button.component.ts +64 -0
  1054. package/templates/frontend/angular-base/src/app/shared/components/card/card.component.spec.ts +29 -0
  1055. package/templates/frontend/angular-base/src/app/shared/components/card/card.component.ts +60 -0
  1056. package/templates/frontend/angular-base/src/app/shared/components/data-table/data-table.component.spec.ts +49 -0
  1057. package/templates/frontend/angular-base/src/app/shared/components/data-table/data-table.component.ts +280 -0
  1058. package/templates/frontend/angular-base/src/app/shared/components/empty-state/empty-state.component.spec.ts +36 -0
  1059. package/templates/frontend/angular-base/src/app/shared/components/empty-state/empty-state.component.ts +56 -0
  1060. package/templates/frontend/angular-base/src/app/shared/components/modal/modal.component.spec.ts +32 -0
  1061. package/templates/frontend/angular-base/src/app/shared/components/modal/modal.component.ts +131 -0
  1062. package/templates/frontend/angular-base/src/app/shared/components/pagination/pagination.component.spec.ts +38 -0
  1063. package/templates/frontend/angular-base/src/app/shared/components/pagination/pagination.component.ts +194 -0
  1064. package/templates/frontend/angular-base/src/app/shared/components/search-input/search-input.component.spec.ts +37 -0
  1065. package/templates/frontend/angular-base/src/app/shared/components/search-input/search-input.component.ts +125 -0
  1066. package/templates/frontend/angular-base/src/app/shared/components/skeleton-loader/skeleton-loader.component.spec.ts +30 -0
  1067. package/templates/frontend/angular-base/src/app/shared/components/skeleton-loader/skeleton-loader.component.ts +55 -0
  1068. package/templates/frontend/angular-base/src/app/shared/components/toggle/toggle.component.spec.ts +49 -0
  1069. package/templates/frontend/angular-base/src/app/shared/components/toggle/toggle.component.ts +101 -0
  1070. package/templates/frontend/angular-base/src/app/shared/components/user-dropdown/user-dropdown.component.spec.ts +65 -0
  1071. package/templates/frontend/angular-base/src/app/shared/components/user-dropdown/user-dropdown.component.ts +219 -0
  1072. package/templates/frontend/angular-base/src/app/shared/directives/auto-focus.directive.spec.ts +33 -0
  1073. package/templates/frontend/angular-base/src/app/shared/directives/auto-focus.directive.ts +25 -0
  1074. package/templates/frontend/angular-base/src/app/shared/index.ts +18 -0
  1075. package/templates/frontend/angular-base/src/app/shared/pipes/date-format.pipe.spec.ts +29 -0
  1076. package/templates/frontend/angular-base/src/app/shared/pipes/date-format.pipe.ts +39 -0
  1077. package/templates/frontend/angular-base/src/environments/environment.development.ts +4 -0
  1078. package/templates/frontend/angular-base/src/environments/environment.ts +4 -0
  1079. package/templates/frontend/angular-base/src/index.html +44 -0
  1080. package/templates/frontend/angular-base/src/main.server.ts +7 -0
  1081. package/templates/frontend/angular-base/src/main.ts +5 -0
  1082. package/templates/frontend/angular-base/src/server.ts +66 -0
  1083. package/templates/frontend/angular-base/src/styles.css +209 -0
  1084. package/templates/frontend/angular-base/src/test-setup.ts +10 -0
  1085. package/templates/frontend/angular-base/tsconfig.app.json +17 -0
  1086. package/templates/frontend/angular-base/tsconfig.json +41 -0
  1087. package/templates/frontend/angular-base/tsconfig.spec.json +15 -0
  1088. package/templates/frontend/angular-base/vitest.config.ts +25 -0
  1089. package/templates/frontend/react-vite/.cursor/skills/architecture/SKILL.md +26 -0
  1090. package/templates/frontend/react-vite/.cursor/skills/components-shadcn/SKILL.md +23 -0
  1091. package/templates/frontend/react-vite/.cursor/skills/daisyui/SKILL.md +98 -0
  1092. package/templates/frontend/react-vite/.cursor/skills/routing/SKILL.md +32 -0
  1093. package/templates/frontend/react-vite/.cursor/skills/testing/SKILL.md +55 -0
  1094. package/templates/frontend/react-vite/.cursor/skills/tooling-and-scripts/SKILL.md +24 -0
  1095. package/templates/frontend/react-vite/.cursor/skills/ui-and-styling/SKILL.md +32 -0
  1096. package/templates/frontend/react-vite/.cursor/skills/vibe-and-ia/SKILL.md +23 -0
  1097. package/templates/frontend/react-vite/.prettierrc +6 -0
  1098. package/templates/frontend/react-vite/.tanstack/tmp/c28007bb-2319511cf318e28129c8d8eb723db5fd +9 -0
  1099. package/templates/frontend/react-vite/.tanstack/tmp/c28007bb-bcef89e9e4593777e1c15ec4b4f32eea +9 -0
  1100. package/templates/frontend/react-vite/.vscode/extensions.json +7 -0
  1101. package/templates/frontend/react-vite/README.md +75 -0
  1102. package/templates/frontend/react-vite/components.json +22 -0
  1103. package/templates/frontend/react-vite/eslint.config.js +31 -0
  1104. package/templates/frontend/react-vite/index.html +13 -0
  1105. package/templates/frontend/react-vite/package.json +62 -0
  1106. package/templates/frontend/react-vite/pnpm-lock.yaml +4487 -0
  1107. package/templates/frontend/react-vite/pnpm-workspace.yaml +2 -0
  1108. package/templates/frontend/react-vite/src/assets/react.svg +1 -0
  1109. package/templates/frontend/react-vite/src/components/ui/badge.tsx +37 -0
  1110. package/templates/frontend/react-vite/src/components/ui/breadcrumb.tsx +106 -0
  1111. package/templates/frontend/react-vite/src/components/ui/button.tsx +58 -0
  1112. package/templates/frontend/react-vite/src/components/ui/card.tsx +72 -0
  1113. package/templates/frontend/react-vite/src/components/ui/form.tsx +165 -0
  1114. package/templates/frontend/react-vite/src/components/ui/input.tsx +22 -0
  1115. package/templates/frontend/react-vite/src/components/ui/label.tsx +24 -0
  1116. package/templates/frontend/react-vite/src/components/ui/password-input.tsx +41 -0
  1117. package/templates/frontend/react-vite/src/components/ui/separator.tsx +28 -0
  1118. package/templates/frontend/react-vite/src/components/ui/tabs.tsx +62 -0
  1119. package/templates/frontend/react-vite/src/components/ui/textarea.tsx +21 -0
  1120. package/templates/frontend/react-vite/src/index.css +104 -0
  1121. package/templates/frontend/react-vite/src/lib/queryClient.ts +11 -0
  1122. package/templates/frontend/react-vite/src/lib/utils.ts +6 -0
  1123. package/templates/frontend/react-vite/src/main.tsx +33 -0
  1124. package/templates/frontend/react-vite/src/routeTree.gen.ts +77 -0
  1125. package/templates/frontend/react-vite/src/router.tsx +13 -0
  1126. package/templates/frontend/react-vite/src/routes/__root.tsx +82 -0
  1127. package/templates/frontend/react-vite/src/routes/index.tsx +187 -0
  1128. package/templates/frontend/react-vite/src/routes/otra-ruta.tsx +319 -0
  1129. package/templates/frontend/react-vite/src/test/setup.ts +1 -0
  1130. package/templates/frontend/react-vite/tsconfig.app.json +34 -0
  1131. package/templates/frontend/react-vite/tsconfig.json +10 -0
  1132. package/templates/frontend/react-vite/tsconfig.node.json +26 -0
  1133. package/templates/frontend/react-vite/vite.config.ts +22 -0
  1134. package/templates/frontend/react-vite/vitest.config.ts +9 -0
  1135. package/templates/frontend/react-vite-help/.cursor/skills/architecture/SKILL.md +26 -0
  1136. package/templates/frontend/react-vite-help/.cursor/skills/components-shadcn/SKILL.md +23 -0
  1137. package/templates/frontend/react-vite-help/.cursor/skills/daisyui/SKILL.md +98 -0
  1138. package/templates/frontend/react-vite-help/.cursor/skills/routing/SKILL.md +32 -0
  1139. package/templates/frontend/react-vite-help/.cursor/skills/testing/SKILL.md +55 -0
  1140. package/templates/frontend/react-vite-help/.cursor/skills/tooling-and-scripts/SKILL.md +24 -0
  1141. package/templates/frontend/react-vite-help/.cursor/skills/ui-and-styling/SKILL.md +32 -0
  1142. package/templates/frontend/react-vite-help/.cursor/skills/vibe-and-ia/SKILL.md +23 -0
  1143. package/templates/frontend/react-vite-help/.prettierrc +6 -0
  1144. package/templates/frontend/react-vite-help/.tanstack/tmp/c28007bb-2319511cf318e28129c8d8eb723db5fd +9 -0
  1145. package/templates/frontend/react-vite-help/.tanstack/tmp/c28007bb-bcef89e9e4593777e1c15ec4b4f32eea +9 -0
  1146. package/templates/frontend/react-vite-help/.vscode/extensions.json +7 -0
  1147. package/templates/frontend/react-vite-help/README.md +75 -0
  1148. package/templates/frontend/react-vite-help/components.json +22 -0
  1149. package/templates/frontend/react-vite-help/eslint.config.js +31 -0
  1150. package/templates/frontend/react-vite-help/index.html +13 -0
  1151. package/templates/frontend/react-vite-help/package.json +62 -0
  1152. package/templates/frontend/react-vite-help/pnpm-lock.yaml +4487 -0
  1153. package/templates/frontend/react-vite-help/pnpm-workspace.yaml +2 -0
  1154. package/templates/frontend/react-vite-help/src/assets/react.svg +1 -0
  1155. package/templates/frontend/react-vite-help/src/components/documentacion/entorno.tsx +99 -0
  1156. package/templates/frontend/react-vite-help/src/components/documentacion/estructura.tsx +100 -0
  1157. package/templates/frontend/react-vite-help/src/components/documentacion/figma-mcp.tsx +200 -0
  1158. package/templates/frontend/react-vite-help/src/components/documentacion/inicio.tsx +69 -0
  1159. package/templates/frontend/react-vite-help/src/components/documentacion/instalacion.tsx +72 -0
  1160. package/templates/frontend/react-vite-help/src/components/documentacion/personalizacion.tsx +163 -0
  1161. package/templates/frontend/react-vite-help/src/components/documentacion/rutas.tsx +138 -0
  1162. package/templates/frontend/react-vite-help/src/components/documentacion/stack.tsx +401 -0
  1163. package/templates/frontend/react-vite-help/src/components/ui/badge.tsx +37 -0
  1164. package/templates/frontend/react-vite-help/src/components/ui/breadcrumb.tsx +106 -0
  1165. package/templates/frontend/react-vite-help/src/components/ui/button.tsx +58 -0
  1166. package/templates/frontend/react-vite-help/src/components/ui/card.tsx +72 -0
  1167. package/templates/frontend/react-vite-help/src/components/ui/form.tsx +165 -0
  1168. package/templates/frontend/react-vite-help/src/components/ui/input.tsx +22 -0
  1169. package/templates/frontend/react-vite-help/src/components/ui/label.tsx +24 -0
  1170. package/templates/frontend/react-vite-help/src/components/ui/password-input.tsx +41 -0
  1171. package/templates/frontend/react-vite-help/src/components/ui/separator.tsx +28 -0
  1172. package/templates/frontend/react-vite-help/src/components/ui/tabs.tsx +62 -0
  1173. package/templates/frontend/react-vite-help/src/components/ui/textarea.tsx +21 -0
  1174. package/templates/frontend/react-vite-help/src/data/proyectos.json +56 -0
  1175. package/templates/frontend/react-vite-help/src/index.css +104 -0
  1176. package/templates/frontend/react-vite-help/src/lib/queryClient.ts +11 -0
  1177. package/templates/frontend/react-vite-help/src/lib/utils.ts +6 -0
  1178. package/templates/frontend/react-vite-help/src/main.tsx +33 -0
  1179. package/templates/frontend/react-vite-help/src/routeTree.gen.ts +241 -0
  1180. package/templates/frontend/react-vite-help/src/router.tsx +13 -0
  1181. package/templates/frontend/react-vite-help/src/routes/__root.tsx +92 -0
  1182. package/templates/frontend/react-vite-help/src/routes/auth/iniciar-sesion.tsx +139 -0
  1183. package/templates/frontend/react-vite-help/src/routes/auth/registro.tsx +205 -0
  1184. package/templates/frontend/react-vite-help/src/routes/contacto.tsx +60 -0
  1185. package/templates/frontend/react-vite-help/src/routes/dashbord.tsx +9 -0
  1186. package/templates/frontend/react-vite-help/src/routes/documentacion.tsx +80 -0
  1187. package/templates/frontend/react-vite-help/src/routes/index.test.tsx +42 -0
  1188. package/templates/frontend/react-vite-help/src/routes/index.tsx +211 -0
  1189. package/templates/frontend/react-vite-help/src/routes/perfil.tsx +9 -0
  1190. package/templates/frontend/react-vite-help/src/routes/proyectos.$proyectoId.tsx +156 -0
  1191. package/templates/frontend/react-vite-help/src/routes/proyectos.tsx +93 -0
  1192. package/templates/frontend/react-vite-help/src/test/setup.ts +1 -0
  1193. package/templates/frontend/react-vite-help/tsconfig.app.json +34 -0
  1194. package/templates/frontend/react-vite-help/tsconfig.json +10 -0
  1195. package/templates/frontend/react-vite-help/tsconfig.node.json +26 -0
  1196. package/templates/frontend/react-vite-help/vite.config.ts +22 -0
  1197. package/templates/frontend/react-vite-help/vitest.config.ts +9 -0
  1198. package/templates/mobile/.gitkeep +1 -0
  1199. package/templates/mobile/expo-base/.cursor/rules/general-rules.mdc +231 -0
  1200. package/templates/mobile/expo-base/.cursor/rules/react-native-rules.mdc +1348 -0
  1201. package/templates/mobile/expo-base/.env +1 -0
  1202. package/templates/mobile/expo-base/.husky/commit-msg +4 -0
  1203. package/templates/mobile/expo-base/.husky/pre-commit +1 -0
  1204. package/templates/mobile/expo-base/.lintstagedrc.js +25 -0
  1205. package/templates/mobile/expo-base/.prettierignore +10 -0
  1206. package/templates/mobile/expo-base/.prettierrc +11 -0
  1207. package/templates/mobile/expo-base/.vscode/extensions.json +1 -0
  1208. package/templates/mobile/expo-base/.vscode/settings.json +7 -0
  1209. package/templates/mobile/expo-base/CHANGELOG.md +155 -0
  1210. package/templates/mobile/expo-base/IMPLEMENTATION_SUMMARY.md +413 -0
  1211. package/templates/mobile/expo-base/README.md +510 -0
  1212. package/templates/mobile/expo-base/SETUP_NOTES.md +233 -0
  1213. package/templates/mobile/expo-base/TEMPLATE_USAGE.md +623 -0
  1214. package/templates/mobile/expo-base/WARP.md +123 -0
  1215. package/templates/mobile/expo-base/app/(public)/_layout.tsx +21 -0
  1216. package/templates/mobile/expo-base/app/(public)/forgot-password.tsx +3 -0
  1217. package/templates/mobile/expo-base/app/(public)/login.tsx +3 -0
  1218. package/templates/mobile/expo-base/app/(public)/register.tsx +3 -0
  1219. package/templates/mobile/expo-base/app/(tabs)/_layout.tsx +60 -0
  1220. package/templates/mobile/expo-base/app/(tabs)/explore.tsx +235 -0
  1221. package/templates/mobile/expo-base/app/(tabs)/index.tsx +290 -0
  1222. package/templates/mobile/expo-base/app/(tabs)/profile.tsx +3 -0
  1223. package/templates/mobile/expo-base/app/_layout.tsx +143 -0
  1224. package/templates/mobile/expo-base/app/modal.tsx +29 -0
  1225. package/templates/mobile/expo-base/app/onboarding.tsx +3 -0
  1226. package/templates/mobile/expo-base/app/profile/_layout.tsx +44 -0
  1227. package/templates/mobile/expo-base/app/profile/change-password.tsx +3 -0
  1228. package/templates/mobile/expo-base/app/profile/edit.tsx +3 -0
  1229. package/templates/mobile/expo-base/app/settings/_layout.tsx +62 -0
  1230. package/templates/mobile/expo-base/app/settings/about.tsx +3 -0
  1231. package/templates/mobile/expo-base/app/settings/index.tsx +3 -0
  1232. package/templates/mobile/expo-base/app/settings/language.tsx +3 -0
  1233. package/templates/mobile/expo-base/app/settings/notifications.tsx +3 -0
  1234. package/templates/mobile/expo-base/app/settings/theme.tsx +3 -0
  1235. package/templates/mobile/expo-base/app.json +31 -0
  1236. package/templates/mobile/expo-base/commitlint.config.js +50 -0
  1237. package/templates/mobile/expo-base/docs/ARCHITECTURE.md +565 -0
  1238. package/templates/mobile/expo-base/docs/CI_CD.md +461 -0
  1239. package/templates/mobile/expo-base/docs/COMPONENTS.md +1103 -0
  1240. package/templates/mobile/expo-base/docs/CONTRIBUTING.md +733 -0
  1241. package/templates/mobile/expo-base/docs/DESIGN_TOKENS.md +832 -0
  1242. package/templates/mobile/expo-base/docs/GIT_CONVENTIONS.md +411 -0
  1243. package/templates/mobile/expo-base/docs/I18N.md +701 -0
  1244. package/templates/mobile/expo-base/docs/TESTING.md +565 -0
  1245. package/templates/mobile/expo-base/docs/THEMING.md +753 -0
  1246. package/templates/mobile/expo-base/docs/VERSIONING.md +518 -0
  1247. package/templates/mobile/expo-base/eslint.config.js +180 -0
  1248. package/templates/mobile/expo-base/jest.config.js +51 -0
  1249. package/templates/mobile/expo-base/jest.setup.js +106 -0
  1250. package/templates/mobile/expo-base/package.json +74 -0
  1251. package/templates/mobile/expo-base/pnpm-lock.yaml +11354 -0
  1252. package/templates/mobile/expo-base/pnpm-workspace.yaml +4 -0
  1253. package/templates/mobile/expo-base/src/__tests__/helpers/test-utils.tsx +77 -0
  1254. package/templates/mobile/expo-base/src/__tests__/mocks/api.ts +65 -0
  1255. package/templates/mobile/expo-base/src/__tests__/mocks/i18n.ts +22 -0
  1256. package/templates/mobile/expo-base/src/__tests__/mocks/index.ts +7 -0
  1257. package/templates/mobile/expo-base/src/__tests__/mocks/navigation.ts +47 -0
  1258. package/templates/mobile/expo-base/src/__tests__/mocks/theme.ts +46 -0
  1259. package/templates/mobile/expo-base/src/assets/images/android-icon-background.png +0 -0
  1260. package/templates/mobile/expo-base/src/assets/images/android-icon-foreground.png +0 -0
  1261. package/templates/mobile/expo-base/src/assets/images/android-icon-monochrome.png +0 -0
  1262. package/templates/mobile/expo-base/src/assets/images/favicon.png +0 -0
  1263. package/templates/mobile/expo-base/src/assets/images/icon.png +0 -0
  1264. package/templates/mobile/expo-base/src/assets/images/partial-react-logo.png +0 -0
  1265. package/templates/mobile/expo-base/src/assets/images/react-logo.png +0 -0
  1266. package/templates/mobile/expo-base/src/assets/images/react-logo@2x.png +0 -0
  1267. package/templates/mobile/expo-base/src/assets/images/react-logo@3x.png +0 -0
  1268. package/templates/mobile/expo-base/src/assets/images/splash-icon.png +0 -0
  1269. package/templates/mobile/expo-base/src/components/external-link.tsx +25 -0
  1270. package/templates/mobile/expo-base/src/components/feedback/empty-state.tsx +150 -0
  1271. package/templates/mobile/expo-base/src/components/feedback/error-boundary.tsx +145 -0
  1272. package/templates/mobile/expo-base/src/components/feedback/error-screen.tsx +121 -0
  1273. package/templates/mobile/expo-base/src/components/feedback/index.ts +11 -0
  1274. package/templates/mobile/expo-base/src/components/feedback/loading.tsx +155 -0
  1275. package/templates/mobile/expo-base/src/components/haptic-tab.tsx +18 -0
  1276. package/templates/mobile/expo-base/src/components/hello-wave.tsx +19 -0
  1277. package/templates/mobile/expo-base/src/components/layout/column.tsx +49 -0
  1278. package/templates/mobile/expo-base/src/components/layout/container.tsx +41 -0
  1279. package/templates/mobile/expo-base/src/components/layout/index.ts +14 -0
  1280. package/templates/mobile/expo-base/src/components/layout/row.tsx +52 -0
  1281. package/templates/mobile/expo-base/src/components/layout/screen.tsx +110 -0
  1282. package/templates/mobile/expo-base/src/components/layout/section.tsx +37 -0
  1283. package/templates/mobile/expo-base/src/components/parallax-scroll-view.tsx +79 -0
  1284. package/templates/mobile/expo-base/src/components/themed-text.tsx +60 -0
  1285. package/templates/mobile/expo-base/src/components/themed-view.tsx +14 -0
  1286. package/templates/mobile/expo-base/src/components/ui/__tests__/button.test.tsx +206 -0
  1287. package/templates/mobile/expo-base/src/components/ui/avatar.tsx +141 -0
  1288. package/templates/mobile/expo-base/src/components/ui/badge.tsx +175 -0
  1289. package/templates/mobile/expo-base/src/components/ui/button.tsx +247 -0
  1290. package/templates/mobile/expo-base/src/components/ui/card.tsx +127 -0
  1291. package/templates/mobile/expo-base/src/components/ui/collapsible.tsx +45 -0
  1292. package/templates/mobile/expo-base/src/components/ui/divider.tsx +50 -0
  1293. package/templates/mobile/expo-base/src/components/ui/icon-symbol.ios.tsx +32 -0
  1294. package/templates/mobile/expo-base/src/components/ui/icon-symbol.tsx +41 -0
  1295. package/templates/mobile/expo-base/src/components/ui/icon.tsx +137 -0
  1296. package/templates/mobile/expo-base/src/components/ui/index.ts +20 -0
  1297. package/templates/mobile/expo-base/src/components/ui/input.tsx +242 -0
  1298. package/templates/mobile/expo-base/src/constants/theme.ts +53 -0
  1299. package/templates/mobile/expo-base/src/contexts/auth-context.tsx +246 -0
  1300. package/templates/mobile/expo-base/src/contexts/index.ts +8 -0
  1301. package/templates/mobile/expo-base/src/contexts/query-client.tsx +43 -0
  1302. package/templates/mobile/expo-base/src/contexts/theme-context.tsx +111 -0
  1303. package/templates/mobile/expo-base/src/features/auth/forgot-password-screen.tsx +164 -0
  1304. package/templates/mobile/expo-base/src/features/auth/index.ts +7 -0
  1305. package/templates/mobile/expo-base/src/features/auth/login-screen.tsx +177 -0
  1306. package/templates/mobile/expo-base/src/features/auth/register-screen.tsx +220 -0
  1307. package/templates/mobile/expo-base/src/features/onboarding/README.md +190 -0
  1308. package/templates/mobile/expo-base/src/features/onboarding/index.ts +7 -0
  1309. package/templates/mobile/expo-base/src/features/onboarding/onboarding-debug.tsx +120 -0
  1310. package/templates/mobile/expo-base/src/features/onboarding/onboarding-screen.tsx +242 -0
  1311. package/templates/mobile/expo-base/src/features/onboarding/onboarding-utils.ts +49 -0
  1312. package/templates/mobile/expo-base/src/features/profile/change-password-screen.tsx +154 -0
  1313. package/templates/mobile/expo-base/src/features/profile/edit-profile-screen.tsx +183 -0
  1314. package/templates/mobile/expo-base/src/features/profile/index.ts +7 -0
  1315. package/templates/mobile/expo-base/src/features/profile/profile-screen.tsx +177 -0
  1316. package/templates/mobile/expo-base/src/features/settings/about-screen.tsx +167 -0
  1317. package/templates/mobile/expo-base/src/features/settings/index.ts +9 -0
  1318. package/templates/mobile/expo-base/src/features/settings/language-settings-screen.tsx +97 -0
  1319. package/templates/mobile/expo-base/src/features/settings/notifications-settings-screen.tsx +128 -0
  1320. package/templates/mobile/expo-base/src/features/settings/settings-screen.tsx +141 -0
  1321. package/templates/mobile/expo-base/src/features/settings/theme-settings-screen.tsx +149 -0
  1322. package/templates/mobile/expo-base/src/hooks/__tests__/use-theme.test.ts +151 -0
  1323. package/templates/mobile/expo-base/src/hooks/index.ts +13 -0
  1324. package/templates/mobile/expo-base/src/hooks/use-api.ts +206 -0
  1325. package/templates/mobile/expo-base/src/hooks/use-auth.ts +7 -0
  1326. package/templates/mobile/expo-base/src/hooks/use-color-scheme.ts +19 -0
  1327. package/templates/mobile/expo-base/src/hooks/use-color-scheme.web.ts +31 -0
  1328. package/templates/mobile/expo-base/src/hooks/use-theme-color.ts +21 -0
  1329. package/templates/mobile/expo-base/src/hooks/use-theme.ts +60 -0
  1330. package/templates/mobile/expo-base/src/hooks/use-translation.ts +48 -0
  1331. package/templates/mobile/expo-base/src/i18n/index.ts +113 -0
  1332. package/templates/mobile/expo-base/src/i18n/locales/en-US.json +134 -0
  1333. package/templates/mobile/expo-base/src/i18n/locales/es-AR.json +134 -0
  1334. package/templates/mobile/expo-base/src/scripts/reset-project.js +112 -0
  1335. package/templates/mobile/expo-base/src/services/api/client.ts +190 -0
  1336. package/templates/mobile/expo-base/src/services/api/endpoints.ts +45 -0
  1337. package/templates/mobile/expo-base/src/services/api/index.ts +7 -0
  1338. package/templates/mobile/expo-base/src/services/storage/secure-storage.ts +56 -0
  1339. package/templates/mobile/expo-base/src/theme/colors.ts +147 -0
  1340. package/templates/mobile/expo-base/src/theme/index.ts +40 -0
  1341. package/templates/mobile/expo-base/src/theme/semantic-colors.ts +221 -0
  1342. package/templates/mobile/expo-base/src/theme/shadows.ts +123 -0
  1343. package/templates/mobile/expo-base/src/theme/spacing.ts +118 -0
  1344. package/templates/mobile/expo-base/src/theme/theme-config.ts +111 -0
  1345. package/templates/mobile/expo-base/src/theme/tokens.ts +218 -0
  1346. package/templates/mobile/expo-base/src/theme/typography.ts +152 -0
  1347. package/templates/mobile/expo-base/src/types/index.ts +6 -0
  1348. package/templates/mobile/expo-base/src/types/models.ts +153 -0
  1349. package/templates/mobile/expo-base/src/types/navigation.ts +67 -0
  1350. package/templates/mobile/expo-base/src/utils/__tests__/validators.test.ts +312 -0
  1351. package/templates/mobile/expo-base/src/utils/constants.ts +167 -0
  1352. package/templates/mobile/expo-base/src/utils/formatters.ts +222 -0
  1353. package/templates/mobile/expo-base/src/utils/index.ts +7 -0
  1354. package/templates/mobile/expo-base/src/utils/validators.ts +187 -0
  1355. package/templates/mobile/expo-base/tsconfig.json +26 -0
@@ -0,0 +1,161 @@
1
+ import { Test, TestingModule } from '@nestjs/testing';
2
+ import { JwtService } from '@nestjs/jwt';
3
+ import { AuthService } from '../../src/auth/auth.service';
4
+ import { PrismaService } from '../../src/prisma/prisma.service';
5
+ import * as bcrypt from 'bcrypt';
6
+
7
+ describe('AuthService', () => {
8
+ let service: AuthService;
9
+ let prismaService: PrismaService;
10
+ let jwtService: JwtService;
11
+
12
+ const mockUser = {
13
+ id: 1,
14
+ email: 'test@example.com',
15
+ password: 'hashedPassword123',
16
+ name: 'Test User',
17
+ role: 'READER' as const,
18
+ createdAt: new Date(),
19
+ updatedAt: new Date(),
20
+ };
21
+
22
+ const mockPrismaService = {
23
+ user: {
24
+ findUnique: jest.fn(),
25
+ },
26
+ };
27
+
28
+ const mockJwtService = {
29
+ sign: jest.fn(),
30
+ };
31
+
32
+ beforeEach(async () => {
33
+ const module: TestingModule = await Test.createTestingModule({
34
+ providers: [
35
+ AuthService,
36
+ {
37
+ provide: PrismaService,
38
+ useValue: mockPrismaService,
39
+ },
40
+ {
41
+ provide: JwtService,
42
+ useValue: mockJwtService,
43
+ },
44
+ ],
45
+ }).compile();
46
+
47
+ service = module.get<AuthService>(AuthService);
48
+ prismaService = module.get<PrismaService>(PrismaService);
49
+ jwtService = module.get<JwtService>(JwtService);
50
+
51
+ // Reset mocks
52
+ jest.clearAllMocks();
53
+ });
54
+
55
+ it('should be defined', () => {
56
+ expect(service).toBeDefined();
57
+ });
58
+
59
+ describe('validateUser', () => {
60
+ it('should return user data without password when credentials are valid', async () => {
61
+ const plainPassword = 'Test123!';
62
+ const hashedPassword = await bcrypt.hash(plainPassword, 10);
63
+
64
+ mockPrismaService.user.findUnique.mockResolvedValue({
65
+ ...mockUser,
66
+ password: hashedPassword,
67
+ });
68
+
69
+ const result = await service.validateUser(mockUser.email, plainPassword);
70
+
71
+ expect(result).toBeDefined();
72
+ expect(result).toHaveProperty('id', mockUser.id);
73
+ expect(result).toHaveProperty('email', mockUser.email);
74
+ expect(result).toHaveProperty('name', mockUser.name);
75
+ expect(result).not.toHaveProperty('password');
76
+ expect(mockPrismaService.user.findUnique).toHaveBeenCalledWith({
77
+ where: { email: mockUser.email },
78
+ });
79
+ });
80
+
81
+ it('should return null when user does not exist', async () => {
82
+ mockPrismaService.user.findUnique.mockResolvedValue(null);
83
+
84
+ const result = await service.validateUser('nonexistent@example.com', 'password');
85
+
86
+ expect(result).toBeNull();
87
+ expect(mockPrismaService.user.findUnique).toHaveBeenCalledWith({
88
+ where: { email: 'nonexistent@example.com' },
89
+ });
90
+ });
91
+
92
+ it('should return null when password is incorrect', async () => {
93
+ const hashedPassword = await bcrypt.hash('correctPassword', 10);
94
+
95
+ mockPrismaService.user.findUnique.mockResolvedValue({
96
+ ...mockUser,
97
+ password: hashedPassword,
98
+ });
99
+
100
+ const result = await service.validateUser(mockUser.email, 'wrongPassword');
101
+
102
+ expect(result).toBeNull();
103
+ });
104
+ });
105
+
106
+ describe('login', () => {
107
+ it('should return access token and user data', () => {
108
+ const validatedUser = {
109
+ id: mockUser.id,
110
+ email: mockUser.email,
111
+ name: mockUser.name,
112
+ createdAt: mockUser.createdAt,
113
+ updatedAt: mockUser.updatedAt,
114
+ };
115
+
116
+ const mockToken = 'mock.jwt.token';
117
+ mockJwtService.sign.mockReturnValue(mockToken);
118
+
119
+ const result = service.login(validatedUser);
120
+
121
+ expect(result).toHaveProperty('access_token', mockToken);
122
+ expect(result).toHaveProperty('user');
123
+ expect(result.user).toHaveProperty('id', mockUser.id);
124
+ expect(result.user).toHaveProperty('email', mockUser.email);
125
+ expect(result.user).toHaveProperty('name', mockUser.name);
126
+ expect(result.user).not.toHaveProperty('password');
127
+
128
+ expect(mockJwtService.sign).toHaveBeenCalledWith({
129
+ email: mockUser.email,
130
+ sub: mockUser.id,
131
+ });
132
+ });
133
+ });
134
+
135
+ describe('hashPassword', () => {
136
+ it('should hash password correctly', async () => {
137
+ const plainPassword = 'Test123!';
138
+ const hashedPassword = await service.hashPassword(plainPassword);
139
+
140
+ expect(hashedPassword).toBeDefined();
141
+ expect(typeof hashedPassword).toBe('string');
142
+ expect(hashedPassword).not.toBe(plainPassword);
143
+
144
+ // Verify hash can be compared
145
+ const isValid = await bcrypt.compare(plainPassword, hashedPassword);
146
+ expect(isValid).toBe(true);
147
+ });
148
+
149
+ it('should generate different hashes for the same password', async () => {
150
+ const plainPassword = 'Test123!';
151
+ const hash1 = await service.hashPassword(plainPassword);
152
+ const hash2 = await service.hashPassword(plainPassword);
153
+
154
+ expect(hash1).not.toBe(hash2);
155
+
156
+ // Both should still be valid
157
+ expect(await bcrypt.compare(plainPassword, hash1)).toBe(true);
158
+ expect(await bcrypt.compare(plainPassword, hash2)).toBe(true);
159
+ });
160
+ });
161
+ });
@@ -0,0 +1,78 @@
1
+ import { Test, TestingModule } from '@nestjs/testing';
2
+ import { HealthController } from '../../src/health/health.controller';
3
+ import { PrismaService } from '../../src/prisma/prisma.service';
4
+
5
+ describe('HealthController', () => {
6
+ let controller: HealthController;
7
+ let prismaService: PrismaService;
8
+
9
+ const mockPrismaService = {
10
+ $queryRaw: jest.fn(),
11
+ };
12
+
13
+ beforeEach(async () => {
14
+ const module: TestingModule = await Test.createTestingModule({
15
+ controllers: [HealthController],
16
+ providers: [
17
+ {
18
+ provide: PrismaService,
19
+ useValue: mockPrismaService,
20
+ },
21
+ ],
22
+ }).compile();
23
+
24
+ controller = module.get<HealthController>(HealthController);
25
+ prismaService = module.get<PrismaService>(PrismaService);
26
+
27
+ jest.clearAllMocks();
28
+ });
29
+
30
+ it('should be defined', () => {
31
+ expect(controller).toBeDefined();
32
+ });
33
+
34
+ describe('check', () => {
35
+ it('should return ok status when database is connected', async () => {
36
+ mockPrismaService.$queryRaw.mockResolvedValue([{ '1': 1 }]);
37
+
38
+ const result = await controller.check();
39
+
40
+ expect(result).toHaveProperty('status', 'ok');
41
+ expect(result).toHaveProperty('database', 'connected');
42
+ expect(result).toHaveProperty('timestamp');
43
+ expect(typeof result.timestamp).toBe('string');
44
+
45
+ // Verify timestamp is a valid ISO date string
46
+ const timestamp = new Date(result.timestamp);
47
+ expect(timestamp.toString()).not.toBe('Invalid Date');
48
+ });
49
+
50
+ it('should return error status when database fails', async () => {
51
+ mockPrismaService.$queryRaw.mockRejectedValue(
52
+ new Error('Connection failed'),
53
+ );
54
+
55
+ const result = await controller.check();
56
+
57
+ expect(result).toHaveProperty('status', 'error');
58
+ expect(result).toHaveProperty('database', 'disconnected');
59
+ expect(result).toHaveProperty('error');
60
+ expect(result.error).toBe('Connection failed');
61
+ expect(result).toHaveProperty('timestamp');
62
+ });
63
+
64
+ it('should return current timestamp', async () => {
65
+ mockPrismaService.$queryRaw.mockResolvedValue([{ '1': 1 }]);
66
+
67
+ const beforeCall = new Date();
68
+ const result = await controller.check();
69
+ const afterCall = new Date();
70
+
71
+ const resultTimestamp = new Date(result.timestamp);
72
+ expect(resultTimestamp.getTime()).toBeGreaterThanOrEqual(
73
+ beforeCall.getTime(),
74
+ );
75
+ expect(resultTimestamp.getTime()).toBeLessThanOrEqual(afterCall.getTime());
76
+ });
77
+ });
78
+ });
@@ -0,0 +1,150 @@
1
+ import { ArgumentsHost, HttpException, HttpStatus } from '@nestjs/common';
2
+ import {
3
+ HttpExceptionFilter,
4
+ AllExceptionsFilter,
5
+ } from '../../src/common/filters/http-exception.filter';
6
+
7
+ describe('HttpExceptionFilter', () => {
8
+ let filter: HttpExceptionFilter;
9
+ let mockResponse: any;
10
+ let mockArgumentsHost: ArgumentsHost;
11
+
12
+ beforeEach(() => {
13
+ filter = new HttpExceptionFilter();
14
+
15
+ mockResponse = {
16
+ status: jest.fn().mockReturnThis(),
17
+ send: jest.fn(),
18
+ };
19
+
20
+ mockArgumentsHost = {
21
+ switchToHttp: jest.fn().mockReturnValue({
22
+ getResponse: jest.fn().mockReturnValue(mockResponse),
23
+ }),
24
+ } as any;
25
+ });
26
+
27
+ it('should be defined', () => {
28
+ expect(filter).toBeDefined();
29
+ });
30
+
31
+ it('should handle HttpException with string message', () => {
32
+ const exception = new HttpException('Test error', HttpStatus.BAD_REQUEST);
33
+
34
+ filter.catch(exception, mockArgumentsHost);
35
+
36
+ expect(mockResponse.status).toHaveBeenCalledWith(400);
37
+ expect(mockResponse.send).toHaveBeenCalledWith(
38
+ expect.objectContaining({
39
+ statusCode: 400,
40
+ message: 'Test error',
41
+ timestamp: expect.any(String),
42
+ }),
43
+ );
44
+ });
45
+
46
+ it('should handle HttpException with object response', () => {
47
+ const exceptionResponse = {
48
+ message: 'Validation failed',
49
+ errors: ['field1 is required'],
50
+ };
51
+ const exception = new HttpException(exceptionResponse, HttpStatus.BAD_REQUEST);
52
+
53
+ filter.catch(exception, mockArgumentsHost);
54
+
55
+ expect(mockResponse.status).toHaveBeenCalledWith(400);
56
+ expect(mockResponse.send).toHaveBeenCalledWith(
57
+ expect.objectContaining({
58
+ statusCode: 400,
59
+ message: 'Validation failed',
60
+ errors: ['field1 is required'],
61
+ timestamp: expect.any(String),
62
+ }),
63
+ );
64
+ });
65
+
66
+ it('should handle UnauthorizedException', () => {
67
+ const exception = new HttpException('Unauthorized', HttpStatus.UNAUTHORIZED);
68
+
69
+ filter.catch(exception, mockArgumentsHost);
70
+
71
+ expect(mockResponse.status).toHaveBeenCalledWith(401);
72
+ expect(mockResponse.send).toHaveBeenCalledWith(
73
+ expect.objectContaining({
74
+ statusCode: 401,
75
+ message: 'Unauthorized',
76
+ timestamp: expect.any(String),
77
+ }),
78
+ );
79
+ });
80
+ });
81
+
82
+ describe('AllExceptionsFilter', () => {
83
+ let filter: AllExceptionsFilter;
84
+ let mockResponse: any;
85
+ let mockArgumentsHost: ArgumentsHost;
86
+
87
+ beforeEach(() => {
88
+ filter = new AllExceptionsFilter();
89
+
90
+ mockResponse = {
91
+ status: jest.fn().mockReturnThis(),
92
+ send: jest.fn(),
93
+ };
94
+
95
+ mockArgumentsHost = {
96
+ switchToHttp: jest.fn().mockReturnValue({
97
+ getResponse: jest.fn().mockReturnValue(mockResponse),
98
+ }),
99
+ } as any;
100
+ });
101
+
102
+ it('should be defined', () => {
103
+ expect(filter).toBeDefined();
104
+ });
105
+
106
+ it('should handle HttpException', () => {
107
+ const exception = new HttpException('Not found', HttpStatus.NOT_FOUND);
108
+
109
+ filter.catch(exception, mockArgumentsHost);
110
+
111
+ expect(mockResponse.status).toHaveBeenCalledWith(404);
112
+ expect(mockResponse.send).toHaveBeenCalledWith(
113
+ expect.objectContaining({
114
+ statusCode: 404,
115
+ message: 'Not found',
116
+ timestamp: expect.any(String),
117
+ }),
118
+ );
119
+ });
120
+
121
+ it('should handle non-HTTP exceptions', () => {
122
+ const exception = new Error('Unexpected error');
123
+
124
+ filter.catch(exception, mockArgumentsHost);
125
+
126
+ expect(mockResponse.status).toHaveBeenCalledWith(500);
127
+ expect(mockResponse.send).toHaveBeenCalledWith(
128
+ expect.objectContaining({
129
+ statusCode: 500,
130
+ message: 'Internal server error',
131
+ timestamp: expect.any(String),
132
+ }),
133
+ );
134
+ });
135
+
136
+ it('should handle unknown exceptions', () => {
137
+ const exception = 'String error';
138
+
139
+ filter.catch(exception, mockArgumentsHost);
140
+
141
+ expect(mockResponse.status).toHaveBeenCalledWith(500);
142
+ expect(mockResponse.send).toHaveBeenCalledWith(
143
+ expect.objectContaining({
144
+ statusCode: 500,
145
+ message: 'Internal server error',
146
+ timestamp: expect.any(String),
147
+ }),
148
+ );
149
+ });
150
+ });
@@ -0,0 +1,50 @@
1
+ import { ExecutionContext, UnauthorizedException } from '@nestjs/common';
2
+ import { JwtAuthGuard } from '../../src/auth/guards/jwt-auth.guard';
3
+
4
+ describe('JwtAuthGuard', () => {
5
+ let guard: JwtAuthGuard;
6
+
7
+ beforeEach(() => {
8
+ guard = new JwtAuthGuard();
9
+ });
10
+
11
+ it('should be defined', () => {
12
+ expect(guard).toBeDefined();
13
+ });
14
+
15
+ describe('handleRequest', () => {
16
+ it('should return user when user is provided', () => {
17
+ const mockUser = {
18
+ id: 1,
19
+ email: 'test@example.com',
20
+ };
21
+
22
+ const result = guard.handleRequest(null, mockUser, null);
23
+
24
+ expect(result).toEqual(mockUser);
25
+ });
26
+
27
+ it('should throw UnauthorizedException when user is not provided', () => {
28
+ expect(() => guard.handleRequest(null, null, null)).toThrow(
29
+ UnauthorizedException,
30
+ );
31
+ expect(() => guard.handleRequest(null, null, null)).toThrow(
32
+ 'Unauthorized',
33
+ );
34
+ });
35
+
36
+ it('should throw error when error is provided', () => {
37
+ const mockError = new Error('Test error');
38
+
39
+ expect(() => guard.handleRequest(mockError, null, null)).toThrow(
40
+ mockError,
41
+ );
42
+ });
43
+
44
+ it('should throw UnauthorizedException when user is undefined', () => {
45
+ expect(() => guard.handleRequest(null, undefined, null)).toThrow(
46
+ UnauthorizedException,
47
+ );
48
+ });
49
+ });
50
+ });
@@ -0,0 +1,41 @@
1
+ import { JwtStrategy } from '../../src/auth/strategies/jwt.strategy';
2
+
3
+ describe('JwtStrategy', () => {
4
+ let strategy: JwtStrategy;
5
+
6
+ beforeEach(() => {
7
+ process.env.JWT_SECRET = 'test-secret-key';
8
+ strategy = new JwtStrategy();
9
+ });
10
+
11
+ it('should be defined', () => {
12
+ expect(strategy).toBeDefined();
13
+ });
14
+
15
+ describe('validate', () => {
16
+ it('should return user object from payload', () => {
17
+ const payload = { sub: 1, email: 'test@example.com' };
18
+
19
+ const result = strategy.validate(payload);
20
+
21
+ expect(result).toEqual({ id: 1, email: 'test@example.com' });
22
+ });
23
+
24
+ it('should extract id from sub property', () => {
25
+ const payload = { sub: 999, email: 'user@example.com' };
26
+
27
+ const result = strategy.validate(payload);
28
+
29
+ expect(result).toEqual({ id: 999, email: 'user@example.com' });
30
+ expect(result.id).toBe(999);
31
+ });
32
+
33
+ it('should preserve email from payload', () => {
34
+ const payload = { sub: 1, email: 'specific@example.com' };
35
+
36
+ const result = strategy.validate(payload);
37
+
38
+ expect(result.email).toBe('specific@example.com');
39
+ });
40
+ });
41
+ });