@cubocicloide/stack-react-fastapi 13.0.6

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 (295) hide show
  1. package/LICENSE +33 -0
  2. package/README.md +66 -0
  3. package/dist/commands/lint/checks/BE/001.d.ts +6 -0
  4. package/dist/commands/lint/checks/BE/001.js +95 -0
  5. package/dist/commands/lint/checks/BE/001.js.map +1 -0
  6. package/dist/commands/lint/checks/BE/002.d.ts +6 -0
  7. package/dist/commands/lint/checks/BE/002.js +30 -0
  8. package/dist/commands/lint/checks/BE/002.js.map +1 -0
  9. package/dist/commands/lint/checks/BE/003.d.ts +11 -0
  10. package/dist/commands/lint/checks/BE/003.js +46 -0
  11. package/dist/commands/lint/checks/BE/003.js.map +1 -0
  12. package/dist/commands/lint/checks/BE/004.d.ts +6 -0
  13. package/dist/commands/lint/checks/BE/004.js +27 -0
  14. package/dist/commands/lint/checks/BE/004.js.map +1 -0
  15. package/dist/commands/lint/checks/BE/005.d.ts +6 -0
  16. package/dist/commands/lint/checks/BE/005.js +107 -0
  17. package/dist/commands/lint/checks/BE/005.js.map +1 -0
  18. package/dist/commands/lint/checks/BE/006.d.ts +6 -0
  19. package/dist/commands/lint/checks/BE/006.js +27 -0
  20. package/dist/commands/lint/checks/BE/006.js.map +1 -0
  21. package/dist/commands/lint/checks/BE/007.d.ts +31 -0
  22. package/dist/commands/lint/checks/BE/007.js +109 -0
  23. package/dist/commands/lint/checks/BE/007.js.map +1 -0
  24. package/dist/commands/lint/checks/BE/008.d.ts +12 -0
  25. package/dist/commands/lint/checks/BE/008.js +57 -0
  26. package/dist/commands/lint/checks/BE/008.js.map +1 -0
  27. package/dist/commands/lint/checks/BE/009.d.ts +12 -0
  28. package/dist/commands/lint/checks/BE/009.js +104 -0
  29. package/dist/commands/lint/checks/BE/009.js.map +1 -0
  30. package/dist/commands/lint/checks/BE/010.d.ts +12 -0
  31. package/dist/commands/lint/checks/BE/010.js +54 -0
  32. package/dist/commands/lint/checks/BE/010.js.map +1 -0
  33. package/dist/commands/lint/checks/BE/011.d.ts +16 -0
  34. package/dist/commands/lint/checks/BE/011.js +46 -0
  35. package/dist/commands/lint/checks/BE/011.js.map +1 -0
  36. package/dist/commands/lint/checks/E2E/001.d.ts +6 -0
  37. package/dist/commands/lint/checks/E2E/001.js +35 -0
  38. package/dist/commands/lint/checks/E2E/001.js.map +1 -0
  39. package/dist/commands/lint/checks/E2E/002.d.ts +6 -0
  40. package/dist/commands/lint/checks/E2E/002.js +37 -0
  41. package/dist/commands/lint/checks/E2E/002.js.map +1 -0
  42. package/dist/commands/lint/checks/E2E/003.d.ts +6 -0
  43. package/dist/commands/lint/checks/E2E/003.js +42 -0
  44. package/dist/commands/lint/checks/E2E/003.js.map +1 -0
  45. package/dist/commands/lint/checks/E2E/004.d.ts +6 -0
  46. package/dist/commands/lint/checks/E2E/004.js +37 -0
  47. package/dist/commands/lint/checks/E2E/004.js.map +1 -0
  48. package/dist/commands/lint/checks/E2E/005.d.ts +6 -0
  49. package/dist/commands/lint/checks/E2E/005.js +47 -0
  50. package/dist/commands/lint/checks/E2E/005.js.map +1 -0
  51. package/dist/commands/lint/checks/E2E/006.d.ts +6 -0
  52. package/dist/commands/lint/checks/E2E/006.js +28 -0
  53. package/dist/commands/lint/checks/E2E/006.js.map +1 -0
  54. package/dist/commands/lint/checks/E2E/007.d.ts +6 -0
  55. package/dist/commands/lint/checks/E2E/007.js +47 -0
  56. package/dist/commands/lint/checks/E2E/007.js.map +1 -0
  57. package/dist/commands/lint/checks/FE/001.d.ts +6 -0
  58. package/dist/commands/lint/checks/FE/001.js +56 -0
  59. package/dist/commands/lint/checks/FE/001.js.map +1 -0
  60. package/dist/commands/lint/checks/FE/002.d.ts +6 -0
  61. package/dist/commands/lint/checks/FE/002.js +80 -0
  62. package/dist/commands/lint/checks/FE/002.js.map +1 -0
  63. package/dist/commands/lint/checks/FE/003.d.ts +6 -0
  64. package/dist/commands/lint/checks/FE/003.js +65 -0
  65. package/dist/commands/lint/checks/FE/003.js.map +1 -0
  66. package/dist/commands/lint/checks/FE/004.d.ts +6 -0
  67. package/dist/commands/lint/checks/FE/004.js +72 -0
  68. package/dist/commands/lint/checks/FE/004.js.map +1 -0
  69. package/dist/commands/lint/checks/FE/005.d.ts +6 -0
  70. package/dist/commands/lint/checks/FE/005.js +103 -0
  71. package/dist/commands/lint/checks/FE/005.js.map +1 -0
  72. package/dist/commands/lint/checks/FE/006.d.ts +6 -0
  73. package/dist/commands/lint/checks/FE/006.js +102 -0
  74. package/dist/commands/lint/checks/FE/006.js.map +1 -0
  75. package/dist/commands/lint/checks/FE/007.d.ts +6 -0
  76. package/dist/commands/lint/checks/FE/007.js +60 -0
  77. package/dist/commands/lint/checks/FE/007.js.map +1 -0
  78. package/dist/commands/lint/checks/FE/008.d.ts +6 -0
  79. package/dist/commands/lint/checks/FE/008.js +115 -0
  80. package/dist/commands/lint/checks/FE/008.js.map +1 -0
  81. package/dist/commands/lint/checks/FE/009.d.ts +6 -0
  82. package/dist/commands/lint/checks/FE/009.js +83 -0
  83. package/dist/commands/lint/checks/FE/009.js.map +1 -0
  84. package/dist/commands/lint/checks/FE/010.d.ts +6 -0
  85. package/dist/commands/lint/checks/FE/010.js +105 -0
  86. package/dist/commands/lint/checks/FE/010.js.map +1 -0
  87. package/dist/commands/lint/checks/FE/011.d.ts +6 -0
  88. package/dist/commands/lint/checks/FE/011.js +43 -0
  89. package/dist/commands/lint/checks/FE/011.js.map +1 -0
  90. package/dist/commands/lint/checks/FE/012.d.ts +6 -0
  91. package/dist/commands/lint/checks/FE/012.js +150 -0
  92. package/dist/commands/lint/checks/FE/012.js.map +1 -0
  93. package/dist/index.d.ts +5 -0
  94. package/dist/index.js +3491 -0
  95. package/dist/index.js.map +1 -0
  96. package/dude.stack.json +7 -0
  97. package/package.json +43 -0
  98. package/templates/aws-eks/backend/Dockerfile.prod.hbs +22 -0
  99. package/templates/aws-eks/docs/docs/deploy.md.hbs +159 -0
  100. package/templates/aws-eks/frontend/Dockerfile.prod +28 -0
  101. package/templates/aws-eks/frontend/nginx.conf +19 -0
  102. package/templates/aws-eks/iac/README.md.hbs +311 -0
  103. package/templates/aws-eks/iac/_gitignore +24 -0
  104. package/templates/aws-eks/iac/helm/app/.helmignore +7 -0
  105. package/templates/aws-eks/iac/helm/app/Chart.yaml.hbs +6 -0
  106. package/templates/aws-eks/iac/helm/app/templates/NOTES.txt +23 -0
  107. package/templates/aws-eks/iac/helm/app/templates/backend-deployment.yaml +44 -0
  108. package/templates/aws-eks/iac/helm/app/templates/backend-service.yaml +16 -0
  109. package/templates/aws-eks/iac/helm/app/templates/celery-beat-deployment.yaml +34 -0
  110. package/templates/aws-eks/iac/helm/app/templates/celery-worker-deployment.yaml +31 -0
  111. package/templates/aws-eks/iac/helm/app/templates/configmap.yaml +15 -0
  112. package/templates/aws-eks/iac/helm/app/templates/flower-deployment.yaml +28 -0
  113. package/templates/aws-eks/iac/helm/app/templates/flower-service.yaml +19 -0
  114. package/templates/aws-eks/iac/helm/app/templates/frontend-deployment.yaml +34 -0
  115. package/templates/aws-eks/iac/helm/app/templates/frontend-service.yaml +16 -0
  116. package/templates/aws-eks/iac/helm/app/templates/helpers.tpl +90 -0
  117. package/templates/aws-eks/iac/helm/app/templates/hpa.yaml +23 -0
  118. package/templates/aws-eks/iac/helm/app/templates/ingress.yaml +30 -0
  119. package/templates/aws-eks/iac/helm/app/templates/migration-job.yaml +38 -0
  120. package/templates/aws-eks/iac/helm/app/templates/redis-deployment.yaml +33 -0
  121. package/templates/aws-eks/iac/helm/app/templates/redis-service.yaml +18 -0
  122. package/templates/aws-eks/iac/helm/app/templates/secret.yaml +17 -0
  123. package/templates/aws-eks/iac/helm/app/templates/serviceaccount.yaml +12 -0
  124. package/templates/aws-eks/iac/helm/app/values-dev.yaml.hbs +35 -0
  125. package/templates/aws-eks/iac/helm/app/values.yaml.hbs +130 -0
  126. package/templates/aws-eks/iac/runner/Dockerfile +53 -0
  127. package/templates/aws-eks/iac/terraform/bootstrap/main.tf.hbs +101 -0
  128. package/templates/aws-eks/iac/terraform/bootstrap/outputs.tf +19 -0
  129. package/templates/aws-eks/iac/terraform/bootstrap/variables.tf.hbs +17 -0
  130. package/templates/aws-eks/iac/terraform/environments/dev/backend.hcl.hbs +12 -0
  131. package/templates/aws-eks/iac/terraform/environments/dev/terraform.tfvars.hbs +32 -0
  132. package/templates/aws-eks/iac/terraform/main.tf.hbs +305 -0
  133. package/templates/aws-eks/iac/terraform/outputs.tf.hbs +52 -0
  134. package/templates/aws-eks/iac/terraform/providers.tf +47 -0
  135. package/templates/aws-eks/iac/terraform/variables.tf.hbs +181 -0
  136. package/templates/aws-eks/iac/terraform/versions.tf +27 -0
  137. package/templates/base/.claude/agents/issue-fixer.md +190 -0
  138. package/templates/base/.claude/agents/security-fixer.md +250 -0
  139. package/templates/base/.claude/rules/BE/001.md +25 -0
  140. package/templates/base/.claude/rules/BE/002.md +15 -0
  141. package/templates/base/.claude/rules/BE/003.md +18 -0
  142. package/templates/base/.claude/rules/BE/004.md +14 -0
  143. package/templates/base/.claude/rules/BE/005.md +15 -0
  144. package/templates/base/.claude/rules/BE/006.md +17 -0
  145. package/templates/base/.claude/rules/BE/007.md +21 -0
  146. package/templates/base/.claude/rules/BE/008.md +19 -0
  147. package/templates/base/.claude/rules/BE/009.md +27 -0
  148. package/templates/base/.claude/rules/BE/010.md +16 -0
  149. package/templates/base/.claude/rules/BE/011.md +15 -0
  150. package/templates/base/.claude/rules/E2E/001.md +13 -0
  151. package/templates/base/.claude/rules/E2E/002.md +14 -0
  152. package/templates/base/.claude/rules/E2E/003.md +10 -0
  153. package/templates/base/.claude/rules/E2E/004.md +23 -0
  154. package/templates/base/.claude/rules/E2E/005.md +15 -0
  155. package/templates/base/.claude/rules/E2E/006.md +13 -0
  156. package/templates/base/.claude/rules/E2E/007.md +18 -0
  157. package/templates/base/.claude/rules/FE/001.md +22 -0
  158. package/templates/base/.claude/rules/FE/002.md +39 -0
  159. package/templates/base/.claude/rules/FE/003.md +19 -0
  160. package/templates/base/.claude/rules/FE/004.md +21 -0
  161. package/templates/base/.claude/rules/FE/005.md +33 -0
  162. package/templates/base/.claude/rules/FE/006.md +24 -0
  163. package/templates/base/.claude/rules/FE/007.md +19 -0
  164. package/templates/base/.claude/rules/FE/008.md +26 -0
  165. package/templates/base/.claude/rules/FE/009.md +30 -0
  166. package/templates/base/.claude/rules/FE/010.md +25 -0
  167. package/templates/base/.claude/rules/FE/011.md +22 -0
  168. package/templates/base/.claude/rules/FE/012.md +32 -0
  169. package/templates/base/.claude/settings.json +53 -0
  170. package/templates/base/.claude/skills/clean-branches/SKILL.md +100 -0
  171. package/templates/base/.claude/skills/create/SKILL.md +47 -0
  172. package/templates/base/.claude/skills/create-jira-issue/SKILL.md +174 -0
  173. package/templates/base/.claude/skills/create-page/SKILL.md +195 -0
  174. package/templates/base/.claude/skills/create-route/SKILL.md +199 -0
  175. package/templates/base/.claude/skills/draft-email/SKILL.md +104 -0
  176. package/templates/base/.claude/skills/fix-issues/SKILL.md +238 -0
  177. package/templates/base/.claude/skills/security-scan/SKILL.md +297 -0
  178. package/templates/base/.claude/skills/verify-security-fixes/SKILL.md +180 -0
  179. package/templates/base/.dude/commands/README.md +85 -0
  180. package/templates/base/.dude/commands/hello.ts +34 -0
  181. package/templates/base/.dude/lint/checks/PRJ/001.ts +26 -0
  182. package/templates/base/.dude/lint/checks/README.md +69 -0
  183. package/templates/base/.vscode/tasks.json +44 -0
  184. package/templates/base/.worktreeinclude +2 -0
  185. package/templates/base/CLAUDE.md.hbs +364 -0
  186. package/templates/base/README.md.hbs +187 -0
  187. package/templates/base/_env.example.hbs +29 -0
  188. package/templates/base/_env.hbs +25 -0
  189. package/templates/base/_gitignore +31 -0
  190. package/templates/base/_npmrc +2 -0
  191. package/templates/base/backend/Dockerfile.hbs +22 -0
  192. package/templates/base/backend/README.md.hbs +74 -0
  193. package/templates/base/backend/_dockerignore +11 -0
  194. package/templates/base/backend/app/__init__.py +1 -0
  195. package/templates/base/backend/app/core/__init__.py +0 -0
  196. package/templates/base/backend/app/core/config.py.hbs +23 -0
  197. package/templates/base/backend/app/fixtures/__init__.py +0 -0
  198. package/templates/base/backend/app/main.py.hbs +41 -0
  199. package/templates/base/backend/app/management/__init__.py +0 -0
  200. package/templates/base/backend/app/models/__init__.py +0 -0
  201. package/templates/base/backend/app/queries/__init__.py +0 -0
  202. package/templates/base/backend/app/routers/__init__.py +0 -0
  203. package/templates/base/backend/app/routers/health.py +13 -0
  204. package/templates/base/backend/app/schemas/__init__.py +0 -0
  205. package/templates/base/backend/app/schemas/health.py +7 -0
  206. package/templates/base/backend/app/tasks/__init__.py +1 -0
  207. package/templates/base/backend/app/tests/__init__.py +0 -0
  208. package/templates/base/backend/app/tests/conftest.py +13 -0
  209. package/templates/base/backend/app/tests/models/__init__.py +0 -0
  210. package/templates/base/backend/app/tests/queries/__init__.py +0 -0
  211. package/templates/base/backend/app/tests/routers/__init__.py +0 -0
  212. package/templates/base/backend/app/tests/routers/test_health.py +10 -0
  213. package/templates/base/backend/app/tests/tasks/__init__.py +1 -0
  214. package/templates/base/backend/app/tests/utils/__init__.py +0 -0
  215. package/templates/base/backend/app/utils/__init__.py +0 -0
  216. package/templates/base/backend/pyproject.toml.hbs +40 -0
  217. package/templates/base/docker-compose.yml.hbs +128 -0
  218. package/templates/base/docs/docs/api.md +21 -0
  219. package/templates/base/docs/docs/dude.md.hbs +316 -0
  220. package/templates/base/docs/docs/index.md.hbs +100 -0
  221. package/templates/base/docs/docs/mkdocs.md +238 -0
  222. package/templates/base/docs/mkdocs.yml.hbs +52 -0
  223. package/templates/base/e2e/.prettierrc.json +1 -0
  224. package/templates/base/e2e/_prettierignore +3 -0
  225. package/templates/base/e2e/cucumber.js +21 -0
  226. package/templates/base/e2e/eslint.config.mjs +14 -0
  227. package/templates/base/e2e/features/example.feature +13 -0
  228. package/templates/base/e2e/package.json.hbs +30 -0
  229. package/templates/base/e2e/pages/ExamplePage.ts +16 -0
  230. package/templates/base/e2e/playwright.config.ts +27 -0
  231. package/templates/base/e2e/steps/common.steps.ts +32 -0
  232. package/templates/base/e2e/steps/example.steps.ts +4 -0
  233. package/templates/base/e2e/support/hooks.ts +72 -0
  234. package/templates/base/e2e/support/world.ts +24 -0
  235. package/templates/base/e2e/tsconfig.json +22 -0
  236. package/templates/base/frontend/.prettierrc.json +6 -0
  237. package/templates/base/frontend/Dockerfile +10 -0
  238. package/templates/base/frontend/_dockerignore +4 -0
  239. package/templates/base/frontend/eslint.config.js +32 -0
  240. package/templates/base/frontend/index.html.hbs +13 -0
  241. package/templates/base/frontend/package.json.hbs +38 -0
  242. package/templates/base/frontend/public/favicon.svg +5 -0
  243. package/templates/base/frontend/src/$components/Layout/$assets/logo.svg +5 -0
  244. package/templates/base/frontend/src/$components/Layout/constants.tsx.hbs +10 -0
  245. package/templates/base/frontend/src/$components/Layout/index.tsx +80 -0
  246. package/templates/base/frontend/src/$components/Layout/types.tsx +9 -0
  247. package/templates/base/frontend/src/$components/index.tsx +1 -0
  248. package/templates/base/frontend/src/$hooks/index.tsx +2 -0
  249. package/templates/base/frontend/src/$hooks/useCounterStore/index.tsx +28 -0
  250. package/templates/base/frontend/src/$hooks/useCounterStore/types.tsx +7 -0
  251. package/templates/base/frontend/src/$hooks/usePageTitle/index.tsx +21 -0
  252. package/templates/base/frontend/src/$types/vite-env.d.ts +10 -0
  253. package/templates/base/frontend/src/App.tsx.hbs +40 -0
  254. package/templates/base/frontend/src/main.tsx +10 -0
  255. package/templates/base/frontend/src/openapi/utils/openapi.yaml.hbs +28 -0
  256. package/templates/base/frontend/src/pages/constants.tsx +31 -0
  257. package/templates/base/frontend/src/pages/index.tsx +192 -0
  258. package/templates/base/frontend/src/pages/types.tsx +6 -0
  259. package/templates/base/frontend/src/styles.module.css +7 -0
  260. package/templates/base/frontend/src/utils/constants.tsx +11 -0
  261. package/templates/base/frontend/src/utils/formatters/index.tsx +49 -0
  262. package/templates/base/frontend/src/utils/functions.tsx +70 -0
  263. package/templates/base/frontend/src/utils/index.tsx +3 -0
  264. package/templates/base/frontend/tsconfig.json +24 -0
  265. package/templates/base/frontend/vite.config.ts +20 -0
  266. package/templates/base/package.json.hbs +11 -0
  267. package/templates/base/security/baseline.json +4 -0
  268. package/templates/celery/backend/app/tasks/__init__.py +1 -0
  269. package/templates/celery/backend/app/tasks/example.py +21 -0
  270. package/templates/celery/backend/app/tests/tasks/test_example.py +7 -0
  271. package/templates/celery/backend/app/worker.py.hbs +33 -0
  272. package/templates/celerybeat/backend/app/tasks/scheduled.py +16 -0
  273. package/templates/celerybeat/backend/app/tests/tasks/test_scheduled.py +7 -0
  274. package/templates/postgres/.dude/commands/reset.ts +76 -0
  275. package/templates/postgres/backend/alembic/env.py +55 -0
  276. package/templates/postgres/backend/alembic/script.py.mako +27 -0
  277. package/templates/postgres/backend/alembic/versions/0001_create_user_table.py +38 -0
  278. package/templates/postgres/backend/alembic.ini +42 -0
  279. package/templates/postgres/backend/app/core/database.py +15 -0
  280. package/templates/postgres/backend/app/models/__init__.py +5 -0
  281. package/templates/postgres/backend/app/models/user.py +15 -0
  282. package/templates/postgres/backend/app/queries/__init__.py +5 -0
  283. package/templates/postgres/backend/app/queries/users.py +18 -0
  284. package/templates/postgres/backend/app/routers/users.py +19 -0
  285. package/templates/postgres/backend/app/routers/users__id.py +20 -0
  286. package/templates/postgres/backend/app/tests/conftest.py +33 -0
  287. package/templates/postgres/backend/app/tests/models/test_user.py +12 -0
  288. package/templates/postgres/backend/app/tests/queries/test_users.py +12 -0
  289. package/templates/postgres/backend/app/tests/routers/test_users.py +10 -0
  290. package/templates/postgres/backend/app/tests/routers/test_users__id.py +9 -0
  291. package/templates/postgres/backend/start.sh +32 -0
  292. package/templates/postgres/frontend/src/openapi/utils/openapi.yaml.hbs +138 -0
  293. package/templates/postgres/frontend/src/pages/users/[id]/index.tsx +51 -0
  294. package/templates/postgres/frontend/src/pages/users/index.tsx +54 -0
  295. package/templates/postgres/frontend/src/pages/users/types.tsx +4 -0
@@ -0,0 +1,44 @@
1
+ {
2
+ "version": "2.0.0",
3
+ "tasks": [
4
+ {
5
+ "label": "dude lint (watch)",
6
+ "type": "shell",
7
+ "command": "echo 'Lint started'; dude lint 2>&1; fswatch -r --exclude '\\.git' --exclude 'node_modules' --exclude '__pycache__' --exclude '\\.venv' --exclude '\\.mypy_cache' . | while read -r _; do echo 'Lint started'; dude lint 2>&1; done",
8
+ "options": {
9
+ "cwd": "${workspaceFolder}"
10
+ },
11
+ "isBackground": true,
12
+ "group": {
13
+ "kind": "build",
14
+ "isDefault": true
15
+ },
16
+ "runOptions": {
17
+ "runOn": "folderOpen"
18
+ },
19
+ "presentation": {
20
+ "reveal": "silent",
21
+ "panel": "dedicated",
22
+ "clear": false
23
+ },
24
+ "problemMatcher": {
25
+ "owner": "dude",
26
+ "fileLocation": ["relative", "${workspaceFolder}"],
27
+ "background": {
28
+ "activeOnStart": true,
29
+ "beginsPattern": "^Lint started$",
30
+ "endsPattern": "^(No issues found\\.|(\\d+ errors?(, \\d+ warnings?)?|\\d+ warnings?))$"
31
+ },
32
+ "pattern": {
33
+ "regexp": "^(.+?)\\((\\d+),(\\d+)\\):\\s+(error|warning)\\s+([\\w-]+):\\s+(.+)$",
34
+ "file": 1,
35
+ "line": 2,
36
+ "column": 3,
37
+ "severity": 4,
38
+ "code": 5,
39
+ "message": 6
40
+ }
41
+ }
42
+ }
43
+ ]
44
+ }
@@ -0,0 +1,2 @@
1
+ .env
2
+ private/
@@ -0,0 +1,364 @@
1
+ # CLAUDE.md — {{projectName}}
2
+
3
+ This file gives Claude the context it needs to work effectively in this project.
4
+ Read it fully before suggesting changes. Keep it up to date as the project evolves.
5
+
6
+ ---
7
+
8
+ ## What this project is
9
+
10
+ **{{projectName}}** is a full-stack web application scaffolded by [`dude`](https://github.com/cubocicloide/dude)
11
+ using the `react-fastapi` stack:
12
+
13
+ | Layer | Technology |
14
+ |----------|-----------------------------------------------|
15
+ | Frontend | React 19, Vite, TypeScript (strict) |
16
+ | Backend | FastAPI, Python ≥ 3.13, uv, Uvicorn |
17
+ | Infra | Docker Compose (single `docker-compose.yml`) |
18
+ | Testing | pytest (backend) · Playwright + Cucumber (e2e)|
19
+ | Security | Bandit · Semgrep · Trivy (all via Docker) |
20
+
21
+ ---
22
+
23
+ ## Project layout
24
+
25
+ ```
26
+ {{projectName}}/
27
+ ├── frontend/ # React + Vite SPA
28
+ │ ├── src/
29
+ │ │ ├── App.tsx
30
+ │ │ ├── main.tsx
31
+ │ │ └── openapi/ # Auto-generated typed API client (never edit by hand)
32
+ │ ├── package.json
33
+ │ └── vite.config.ts
34
+ ├── backend/ # FastAPI application
35
+ │ ├── app/
36
+ │ │ ├── core/ # settings, database session, shared utilities
37
+ │ │ ├── models/ # SQLAlchemy ORM models
38
+ │ │ ├── queries/ # database query functions
39
+ │ │ ├── routers/ # APIRouter modules (one file per resource)
40
+ │ │ ├── schemas/ # Pydantic request/response schemas
41
+ │ │ ├── tasks/ # Celery task definitions
42
+ │ │ ├── tests/ # pytest test suite
43
+ │ │ │ ├── models/
44
+ │ │ │ ├── queries/
45
+ │ │ │ ├── routers/
46
+ │ │ │ ├── tasks/
47
+ │ │ │ └── utils/
48
+ │ │ ├── utils/ # pure helper functions
49
+ │ │ ├── __init__.py
50
+ │ │ └── main.py # Entry point, routers, lifespan
51
+ │ └── pyproject.toml
52
+ ├── e2e/ # End-to-end tests (Playwright + Cucumber.js)
53
+ │ ├── features/ # Gherkin .feature files
54
+ │ └── steps/ # Step definitions
55
+ ├── security/
56
+ │ └── baseline.json # Accepted security findings (versioned, commit this)
57
+ ├── private/ # Gitignored — ephemeral files (reports, scratch)
58
+ │ └── sast-reports/ # Security scan output (auto-generated)
59
+ ├── docs/ # MkDocs project (served via `dude docs`)
60
+ │ ├── mkdocs.yml # MkDocs configuration
61
+ │ └── docs/ # Markdown source pages
62
+ │ ├── index.md
63
+ │ ├── dude.md
64
+ │ └── mkdocs.md
65
+ ├── .dude/ # project extensions
66
+ │ └── commands/ # custom `dude` commands (one file = one command)
67
+ ├── dude.json # dude project config (stack identifier)
68
+ ├── docker-compose.yml
69
+ └── CLAUDE.md ← you are here
70
+ ```
71
+
72
+ ---
73
+
74
+ ## dude CLI — all available commands
75
+
76
+ > Run `dude help` for a live, merged overview.
77
+ > Run `dude help <command>` or `dude help <group> <sub>` for flags.
78
+
79
+ > **How `dude` is provided.** The `dude` command comes from the global launcher
80
+ > (`@cubocicloide/dude-launcher`, installed once via `npm i -g`). It resolves the
81
+ > CLI + stack versions **this project pins** in `package.json` (lockfile-enforced)
82
+ > and runs them — so every contributor and CI use identical tooling. `pnpm install`
83
+ > provisions them; the launcher also does it automatically on first run. You can
84
+ > equivalently run `pnpm dude <cmd>` from the project root.
85
+
86
+ ### Infrastructure
87
+
88
+ | Command | What it does |
89
+ |---------------------------|---------------------------------------------------------|
90
+ | `dude up` | `docker compose up -d` (start all services) |
91
+ | `dude up --build` | Rebuild images before starting |
92
+ | `dude down` | `docker compose down` (stop + remove containers) |
93
+ | `dude logs [service]` | Follow logs; omit service to follow all |
94
+ | `dude shell <service>` | Interactive shell inside a running container |
95
+
96
+ ### Code quality
97
+
98
+ | Command | What it does |
99
+ |---------------------------|-----------------------------------------------------------------------|
100
+ | `dude lint` | Run all stack structural lint checks (naming, layout conventions) |
101
+ | `dude format` | `ruff format` (backend) + `prettier` (frontend) |
102
+ | `dude review` | Run lint + ESLint + API contract review in one pass |
103
+
104
+ ### API contract (OpenAPI)
105
+
106
+ | Command | What it does |
107
+ |---------------------------|-----------------------------------------------------------------------|
108
+ | `dude api sync` | Fetch OpenAPI spec from the running backend → generate typed client |
109
+ | `dude api review` | Validate `frontend/src/openapi/` against the saved spec |
110
+
111
+ **Workflow**: always run `dude api sync` after changing backend routes, then commit
112
+ the updated `frontend/src/openapi/` alongside the route change.
113
+
114
+ ### Testing
115
+
116
+ | Command | What it does |
117
+ |-----------------------------------|----------------------------------------------------|
118
+ | `dude test` | Run all available suites (backend + e2e) |
119
+ | `dude test --backend` | pytest only |
120
+ | `dude test --e2e` | Playwright + Cucumber only |
121
+ | `dude test --e2e --headed` | E2e in a visible browser window |
122
+ | `dude test --e2e --report` | E2e with HTML + JSON output to `e2e/reports/` |
123
+
124
+ ### Security scanning
125
+
126
+ All scanners run inside Docker — no host-level tool installation required.
127
+ New findings cause a non-zero exit; known/accepted findings (baseline) do not.
128
+
129
+ | Command | What it does |
130
+ |--------------------------------------------------|---------------------------------------------------------------|
131
+ | `dude security scan` | Run all scanners; exit 1 if new findings ≥ HIGH |
132
+ | `dude security scan --only bandit,semgrep` | Run a subset of scanners |
133
+ | `dude security scan --min-severity LOW` | Lower the reporting threshold (default: MEDIUM) |
134
+ | `dude security scan --fail-on CRITICAL` | Raise the failure threshold (default: HIGH) |
135
+ | `dude security scan --update-baseline` | Scan + absorb all findings into the baseline |
136
+ | `dude security accept` | Equivalent to `scan --update-baseline`; use after triage |
137
+ | `dude security verify --rule-id B105,CVE-…` | Confirm a specific finding has been fixed |
138
+ | `dude security verify --rule-id B105 --remove-resolved` | Fix confirmed → prune it from the baseline |
139
+
140
+ **Scanners**:
141
+ - `bandit` — Python AST (backend only)
142
+ - `semgrep` — multi-language rules (backend + frontend)
143
+ - `trivy-fs` — filesystem: vulns, IaC misconfigs, secrets
144
+ - `trivy-image` — container image CVEs (requires built image)
145
+
146
+ **Baseline workflow**:
147
+ 1. `dude security scan` — review new findings
148
+ 2. Triage: fix what needs fixing, accept acceptable risks
149
+ 3. `dude security accept` — absorbs remaining findings into `security/baseline.json`
150
+ 4. `git add security/baseline.json && git commit` — commit the baseline update
151
+ 5. Subsequent scans only flag *new* issues not in the baseline
152
+
153
+ ### Documentation
154
+
155
+ | Command | What it does |
156
+ |--------------------------|---------------------------------------------------------------------|
157
+ | `dude docs` | Serve `docs/` via MkDocs Material in dev mode at http://localhost:8001 |
158
+ | `dude docs --port 9000` | Same, on a custom port |
159
+
160
+ Docs are live-reload: edit any `.md` file under `docs/docs/` and the browser refreshes automatically.
161
+ {{#if withIac}}
162
+
163
+ ### Infrastructure (IaC — AWS EKS)
164
+
165
+ This project ships Terraform + a Helm chart under `iac/` to deploy to AWS EKS.
166
+ Terraform owns the infrastructure (VPC, EKS, ECR, ALB controller{{#if withPostgres}}, RDS{{/if}});
167
+ Helm owns the application release. All commands are environment-scoped via
168
+ `--env` (**required** — no default, to avoid acting on the wrong environment).
169
+ Available environments are auto-discovered from `iac/terraform/environments/*`;
170
+ run any command without `--env` to list them. State lives in S3, so commands run
171
+ the same locally and in CI. See `iac/README.md` for the full workflow.
172
+
173
+ | Command | What it does |
174
+ |-------------------------|---------------------------------------------------------------|
175
+ | `dude iac new-env --env <name>` | Scaffold a new environment (copies `dev` by default) |
176
+ | `dude iac init` | `terraform init` (configures the S3 backend for the env) |
177
+ | `dude iac plan` | `terraform plan` |
178
+ | `dude iac apply` | Provision/update infrastructure (`--yes` to auto-approve) |
179
+ | `dude iac destroy` | Tear down infrastructure (`--yes` to auto-approve) |
180
+ | `dude iac output` | Show outputs (cluster, ECR URLs{{#if withPostgres}}, RDS endpoint{{/if}}; `--json`) |
181
+ | `dude iac fmt` | `terraform fmt -recursive` |
182
+ | `dude iac validate` | `terraform validate` |
183
+ | `dude iac kubeconfig` | Point `kubectl`/`helm` at the provisioned cluster |
184
+ | `dude iac deploy` | `helm upgrade --install` the application |
185
+ | `dude iac status` | Release status + pods |
186
+
187
+ These commands appear **only** in IaC-enabled projects.
188
+ {{/if}}
189
+
190
+ ### Project-local custom commands
191
+
192
+ This project can define its own `dude` commands under `.dude/commands/`. Each
193
+ file becomes a command named after the file (`reset.ts` → `dude reset`); no
194
+ registration step. They appear in `dude help` under **PROJECT COMMANDS** and
195
+ take precedence over stack commands of the same name (so a `.dude/commands/up.ts`
196
+ overrides the default `dude up`). The core commands `init`, `upgrade`, `version`,
197
+ and `help` are reserved.
198
+
199
+ Commands are loaded with [jiti](https://github.com/unjs/jiti), so they can be
200
+ written in TypeScript and `import` any package added to the project. Use the
201
+ `defineCommand` helper for type-checking:
202
+
203
+ ```ts
204
+ // .dude/commands/reset.ts
205
+ import { defineCommand } from '@cubocicloide/dude'
206
+
207
+ export default defineCommand({
208
+ description: 'Reset the database to a clean state.',
209
+ args: { force: { type: 'boolean', description: 'Skip confirmation.' } },
210
+ async run({ projectRoot, args }) {
211
+ // ...
212
+ },
213
+ })
214
+ ```
215
+
216
+ See `.dude/commands/README.md` (shipped with the scaffold) for the full contract.
217
+
218
+ ---
219
+
220
+ ## Development workflows
221
+
222
+ ### Start the stack (Docker)
223
+
224
+ ```bash
225
+ dude up --build # first time
226
+ dude up # subsequent runs
227
+ ```
228
+
229
+ Services:
230
+
231
+ | Service | URL |
232
+ |----------|----------------------------------|
233
+ | Frontend | http://localhost |
234
+ | API | http://localhost:8000 |
235
+ | Health | http://localhost:8000/api/health |
236
+
237
+ ### Local development (no Docker)
238
+
239
+ ```bash
240
+ # Backend (terminal 1)
241
+ cd backend
242
+ uv sync
243
+ uv run uvicorn app.main:app --reload # http://localhost:8000
244
+
245
+ # Frontend (terminal 2)
246
+ cd frontend
247
+ pnpm install
248
+ pnpm dev # http://localhost:5173
249
+ ```
250
+
251
+ ### After changing backend routes
252
+
253
+ ```bash
254
+ dude api sync # regenerate the typed client
255
+ dude api review # sanity-check the generated output
256
+ ```
257
+
258
+ ---
259
+
260
+ ## Tech stack conventions
261
+
262
+ ### Backend (`backend/`)
263
+
264
+ - **Language**: Python ≥ 3.13
265
+ - **Package manager / runtime**: `uv` (never use pip directly)
266
+ - **Linter / formatter**: `ruff` — rules `E, F, I, N, UP, B, S, RUF`, line length 100
267
+ - **Type checking**: `mypy --strict`
268
+ - **Tests**: `pytest` with `pytest-asyncio`; test files in `backend/tests/`
269
+ - **App entry point**: `backend/app/main.py` → `uvicorn app.main:app`
270
+
271
+ Prefer adding new routes as dedicated routers (`APIRouter`) and including them
272
+ in `main.py`, rather than putting everything in a single file.
273
+
274
+ **Required directory structure** inside `backend/app/`:
275
+ `core/`, `fixtures/`, `management/`, `models/`, `queries/`, `routers/`,
276
+ `schemas/`, `tasks/`, `tests/`, `utils/`
277
+
278
+ Every source file in `models/`, `queries/`, `routers/`, `tasks/`, or `utils/`
279
+ must have a corresponding test file in the matching `tests/<dir>/test_<name>.py`.
280
+ Run `dude lint` to check coverage.
281
+
282
+ ### Frontend (`frontend/src/`)
283
+
284
+ - **Language**: TypeScript (strict mode)
285
+ - **Framework**: React 19 with function components + hooks
286
+ - **Build tool**: Vite
287
+ - **Package manager**: `pnpm`
288
+ - **Formatter**: `prettier` (run via `dude format`)
289
+ - **Linter**: ESLint with `react-hooks` + `react-refresh` plugins
290
+ - **API client**: `frontend/src/openapi/` — **never edit by hand**, always regenerate via `dude api sync`
291
+
292
+ ### Docker Compose
293
+
294
+ - Service names: `frontend`, `backend` (use these with `dude logs`, `dude shell`)
295
+ - Hot-reload is enabled in development mode for both services
296
+
297
+ ---
298
+
299
+ ## Claude AI assistance
300
+
301
+ This project ships a set of Claude skills and agents inside `.claude/`.
302
+ Invoke skills from the Claude chat panel with `/skill-name`.
303
+
304
+ ### Skills (slash commands)
305
+
306
+ | Skill | What it does |
307
+ |-------|--------------|
308
+ | `/create` | Guided scaffolding router — asks route or page, then runs the matching flow |
309
+ | `/create-route` | Scaffold a backend API route (router + model/query/schema + tests), enforcing the BE rules |
310
+ | `/create-page` | Scaffold a frontend page (React + antd), wire the route, reuse shared components/hooks, enforcing the FE rules |
311
+ | `/security-scan` | Full SAST scan → parallel fix agents per finding → PR + Jira issues |
312
+ | `/verify-security-fixes` | Re-scan, confirm resolved findings, close Jira issues, update baseline |
313
+ | `/fix-issues` | Fetch open Jira issues → route to `issue-fixer` or `security-fixer` agents → PR |
314
+ | `/create-jira-issue` | Guided Jira issue creation with type/priority/labels |
315
+ | `/clean-branches` | Prune merged and stale local/remote branches |
316
+ | `/draft-email` | Draft a professional email from a brief |
317
+
318
+ ### Agents (autonomous workers)
319
+
320
+ | Agent | What it does |
321
+ |-------|--------------|
322
+ | `issue-fixer` | Implements a single Jira issue in its own git worktree; opens PR; transitions issue to Done |
323
+ | `security-fixer` | Fixes a single SAST finding in its own worktree; handles suppressions and CVE updates |
324
+
325
+ Agents run in isolated git worktrees (one branch per task) and can operate in
326
+ parallel when orchestrated by `/fix-issues` or `/security-scan`.
327
+
328
+ ### Saved config (autodiscovery)
329
+
330
+ Skills read Atlassian/Bitbucket connection details from `.claude/config.json`
331
+ (gitignored). Create it on first use:
332
+
333
+ ```json
334
+ {
335
+ "jira": { "projectKey": "PROJ" },
336
+ "bitbucket": { "workspace": "my-org", "repo": "{{projectName}}" }
337
+ }
338
+ ```
339
+
340
+ ---
341
+
342
+ ## What Claude should NOT do
343
+
344
+ - Edit anything under `frontend/src/openapi/` — it is auto-generated. Run `dude api sync` instead.
345
+ - Edit `security/baseline.json` by hand — use `dude security accept` or `dude security verify --remove-resolved`.
346
+ - Add files to `private/` to version control — it is gitignored.
347
+ - Use `pip install` — always `uv add <package>` for backend dependencies.
348
+ - Use `npm` or `yarn` — always `pnpm` for frontend dependencies.
349
+
350
+ ---
351
+
352
+ ## Key files at a glance
353
+
354
+ | File | Purpose |
355
+ |------|---------|
356
+ | `dude.json` | Identifies the stack (`react-fastapi`); required for `dude` commands |
357
+ | `docker-compose.yml` | Service definitions for all environments |
358
+ | `security/baseline.json` | Accepted security findings; commit whenever updated |
359
+ | `backend/pyproject.toml` | Python project metadata, deps, ruff/mypy config |
360
+ | `frontend/package.json` | JS/TS project metadata and dev scripts |
361
+ | `frontend/src/openapi/` | Auto-generated API client — do not edit |
362
+ | `docs/mkdocs.yml` | MkDocs configuration; edit nav here to add new pages |
363
+ | `docs/docs/` | Markdown source for the documentation site |
364
+ | `CLAUDE.md` | This file — project context for Claude |
@@ -0,0 +1,187 @@
1
+ # {{projectName}}
2
+
3
+ Scaffolded with [`dude`](https://github.com/cubocicloide/dude) using the
4
+ `react-fastapi` stack.
5
+
6
+ ---
7
+
8
+ ## Prerequisites
9
+
10
+ - **Docker Desktop** — running (the whole stack runs in containers).
11
+ - **Node.js ≥ 20** and **pnpm** — to provision the project toolchain.
12
+
13
+ The `dude` CLI and its stack are published on the public npm registry, so no
14
+ registry auth or token is needed to install them.
15
+
16
+ ---
17
+
18
+ ## Getting started
19
+
20
+ The full lifecycle — install the launcher once, scaffold, provision, run:
21
+
22
+ ```bash
23
+ # 1. Install the dude launcher globally — the ONLY global install.
24
+ # It auto-runs each project's pinned CLI.
25
+ npm install -g @cubocicloide/dude-launcher
26
+
27
+ # 2. Scaffold the project (this is how {{projectName}} was created).
28
+ dude init {{projectName}} --stack react-fastapi
29
+ cd {{projectName}}
30
+
31
+ # 3. Provision the project toolchain — installs the pinned `dude` CLI + stack
32
+ # (and root dev deps) from the lockfile.
33
+ pnpm install
34
+
35
+ # 4. First run — build the images and start every service.
36
+ dude up --build
37
+ {{#if withPostgres}}
38
+
39
+ # 5. First run only — apply migrations and seed demo data.
40
+ dude reset
41
+ {{/if}}
42
+
43
+ # {{#if withPostgres}}6{{else}}5{{/if}}. From the second run onward, just:
44
+ dude up
45
+ ```
46
+
47
+ > **Already have the project?** If you're reading this inside `{{projectName}}`
48
+ > (or you just `git clone`d it), it's already scaffolded — skip step 2 and start
49
+ > at `pnpm install`.
50
+ {{#if withPostgres}}
51
+
52
+ > **Why `dude reset`?** `dude up` applies pending Alembic migrations
53
+ > automatically on every start, so the schema is always current — but a fresh
54
+ > database has no data in it. `dude reset` drops the database, re-applies
55
+ > migrations, and seeds demo users; skip it and pages like **Users** simply
56
+ > render empty.
57
+ {{/if}}
58
+
59
+ > **How `dude` resolves its version.** `dude` on your `PATH` is the *launcher*.
60
+ > On the first `dude <cmd>` inside a project it provisions the versions pinned in
61
+ > `package.json` (running `pnpm install` for you if `node_modules` is missing),
62
+ > then re-execs the project-local CLI. So step 3 is optional — `dude up --build`
63
+ > would trigger it — but running it explicitly makes the first build faster and
64
+ > surfaces any auth problem up front.
65
+
66
+ Once the containers are up, open the URLs below.
67
+
68
+ ### Services
69
+
70
+ | Service | URL | Notes |
71
+ |---------|-----|-------|
72
+ | **Frontend** | http://localhost:5173 | React + Vite — HMR active |
73
+ | **API** | http://localhost:8000 | FastAPI |
74
+ | **Swagger UI** | http://localhost:8000/api/docs | Interactive API explorer |
75
+ | **ReDoc** | http://localhost:8000/api/redoc | API reference docs |
76
+ | **Health** | http://localhost:8000/api/health | JSON health check |
77
+ {{#if withCelery}}
78
+ | **Flower** | http://localhost:5555 | Celery task monitor |
79
+ {{/if}}
80
+
81
+ ### Documentation site
82
+
83
+ This project ships a full docs site (MkDocs Material). Serve it locally:
84
+
85
+ ```bash
86
+ dude docs # → http://localhost:8001
87
+ dude docs --port 9000 # custom port
88
+ ```
89
+
90
+ It live-reloads as you edit files under `docs/docs/`. The **Command reference**
91
+ page is auto-generated from your actual commands every time you run `dude docs`.
92
+
93
+ ### Hot reload
94
+
95
+ - **Frontend** — Vite HMR is on by default. Edit any file under `frontend/src/`
96
+ and the browser updates instantly without a full page reload.
97
+ - **Backend** — Uvicorn runs with `--reload`. Edit any Python file under
98
+ `backend/app/` and the API restarts automatically within a second.
99
+
100
+ ### Common commands
101
+
102
+ | Command | Description |
103
+ |---------|-------------|
104
+ | `dude up --build` | Rebuild images and start all services |
105
+ | `dude up` | Start all services (detached) |
106
+ {{#if withPostgres}}
107
+ | `dude reset` | Drop the database, re-apply migrations, and seed demo data |
108
+ {{/if}}
109
+ | `dude down` | Stop and remove containers |
110
+ | `dude logs [service]` | Follow logs (omit service to follow all) |
111
+ | `dude shell <service>` | Open a shell inside a running container |
112
+ | `dude api sync` | Fetch OpenAPI spec → regenerate typed client |
113
+ | `dude api review` | Validate generated client against the spec |
114
+ | `dude lint` | Run all stack lint checks |
115
+ | `dude docs` | Serve this documentation (http://localhost:8001) |
116
+ | `dude help` | Live list of every available command |
117
+ | `dude upgrade` | Update pinned CLI and stack versions for this project |
118
+
119
+ Run `dude help` for the full, live catalog (it reflects this project's `dude
120
+ init` choices), or see the **Working with dude** page in the docs site.
121
+
122
+ ### Upgrading pinned versions
123
+
124
+ Use `dude upgrade` to update the versions pinned in `package.json` and
125
+ `dude.json`.
126
+
127
+ ```bash
128
+ dude upgrade
129
+ dude upgrade --cli --cli-version 0.6.1
130
+ dude upgrade --stack --stack-version 5.0.5
131
+ ```
132
+
133
+ This updates version pins only; it does not migrate existing files. Run `pnpm
134
+ install` afterwards. To roll back, pin the previous version again and reinstall:
135
+
136
+ ```bash
137
+ dude upgrade --cli --cli-version 0.6.0
138
+ dude upgrade --stack --stack-version 5.0.4
139
+ pnpm install
140
+ ```
141
+
142
+ ---
143
+
144
+ ## Scaffolding another project
145
+
146
+ This project was created with `dude init`. With the launcher installed, you can
147
+ scaffold a new one from anywhere (the launcher delegates `init` to the latest
148
+ published CLI):
149
+
150
+ ```bash
151
+ dude init my-next-app --stack react-fastapi
152
+ ```
153
+
154
+ ---
155
+
156
+ ## Project layout
157
+
158
+ ```
159
+ {{projectName}}/
160
+ ├── frontend/ # React + Vite + TypeScript
161
+ ├── backend/ # FastAPI (Python 3.13)
162
+ │ └── app/
163
+ │ ├── core/ # settings, database session, shared utilities
164
+ │ ├── models/ # SQLAlchemy ORM models
165
+ │ ├── queries/ # database query functions
166
+ │ ├── routers/ # APIRouter modules (one file per resource)
167
+ │ ├── schemas/ # Pydantic request/response schemas
168
+ │ ├── tasks/ # Celery task definitions
169
+ │ ├── tests/ # pytest test suite
170
+ │ └── utils/ # pure helper functions
171
+ ├── docs/ # MkDocs documentation site
172
+ └── docker-compose.yml
173
+ ```
174
+
175
+ ## Quick start — local (no Docker)
176
+
177
+ ```bash
178
+ # Frontend (terminal 1)
179
+ cd frontend
180
+ pnpm install
181
+ pnpm dev # http://localhost:5173
182
+
183
+ # Backend (terminal 2)
184
+ cd backend
185
+ uv sync
186
+ uv run uvicorn app.main:app --reload # http://localhost:8000
187
+ ```
@@ -0,0 +1,29 @@
1
+ # Copy this file to .env and adjust as needed.
2
+ # docker-compose reads this file automatically from the project root.
3
+ # For local Vite dev, Vite also reads from this directory (envDir is set to project root).
4
+
5
+ # ── App ───────────────────────────────────────────────────────────────────────
6
+ APP_TITLE={{projectName}}
7
+ DEBUG=true
8
+
9
+ # ── Frontend (baked in at Docker build time by Vite) ─────────────────────────
10
+ VITE_APP_TITLE={{projectName}}
11
+ # Set to "true" to enable React Query DevTools in the browser
12
+ VITE_REACT_QUERY_DEVTOOLS=true
13
+ {{#if withPostgres}}
14
+
15
+ # ── Database ──────────────────────────────────────────────────────────────────
16
+ DATABASE_URL=postgresql://postgres:postgres@postgres:5432/app
17
+ POSTGRES_USER=postgres
18
+ POSTGRES_PASSWORD=postgres
19
+ POSTGRES_DB=app
20
+ POSTGRES_HOST=postgres
21
+ POSTGRES_PORT=5432
22
+ {{/if}}
23
+ {{#if withRedis}}
24
+
25
+ # ── Redis / Celery ────────────────────────────────────────────────────────────
26
+ REDIS_URL=redis://redis:6379/0
27
+ CELERY_BROKER_URL=redis://redis:6379/0
28
+ CELERY_RESULT_BACKEND=redis://redis:6379/0
29
+ {{/if}}
@@ -0,0 +1,25 @@
1
+ # ── App ───────────────────────────────────────────────────────────────────────
2
+ APP_TITLE={{projectName}}
3
+ DEBUG=true
4
+
5
+ # ── Frontend (baked in at Docker build time by Vite) ─────────────────────────
6
+ VITE_APP_TITLE={{projectName}}
7
+ # Set to "true" to enable React Query DevTools in the browser
8
+ VITE_REACT_QUERY_DEVTOOLS=true
9
+ {{#if withPostgres}}
10
+
11
+ # ── Database ──────────────────────────────────────────────────────────────────
12
+ DATABASE_URL=postgresql://postgres:postgres@postgres:5432/app
13
+ POSTGRES_USER=postgres
14
+ POSTGRES_PASSWORD=postgres
15
+ POSTGRES_DB=app
16
+ POSTGRES_HOST=postgres
17
+ POSTGRES_PORT=5432
18
+ {{/if}}
19
+ {{#if withRedis}}
20
+
21
+ # ── Redis / Celery ────────────────────────────────────────────────────────────
22
+ REDIS_URL=redis://redis:6379/0
23
+ CELERY_BROKER_URL=redis://redis:6379/0
24
+ CELERY_RESULT_BACKEND=redis://redis:6379/0
25
+ {{/if}}
@@ -0,0 +1,31 @@
1
+ # Dependencies
2
+ node_modules/
3
+ .venv/
4
+ __pycache__/
5
+ *.pyc
6
+
7
+ # Build
8
+ dist/
9
+ build/
10
+ *.egg-info/
11
+
12
+ # Env
13
+ .env
14
+ .env.local
15
+
16
+ # Editor / OS
17
+ .DS_Store
18
+ .idea/
19
+ .vscode/
20
+
21
+ # Logs
22
+ *.log
23
+
24
+ # E2E test reports
25
+ e2e/reports/
26
+
27
+ # Private / ephemeral workspace (reports, local overrides, scratch files)
28
+ private/
29
+
30
+ # Generated API reference — rebuilt from the live command catalog by `dude docs`
31
+ docs/docs/api.md