ntc-dev-kit 1.2.1__tar.gz → 1.3.1__tar.gz

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 (231) hide show
  1. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/MANIFEST.in +1 -1
  2. {ntc_dev_kit-1.2.1/ntc_dev_kit.egg-info → ntc_dev_kit-1.3.1}/PKG-INFO +86 -3
  3. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/README.md +83 -1
  4. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/__init__.py +1 -1
  5. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/cli_enhanced.py +61 -26
  6. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/main.py +12 -0
  7. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/nextjs/.env.example +6 -0
  8. ntc_dev_kit-1.3.1/ntc/templates/nextjs/public/logo.svg +1 -0
  9. ntc_dev_kit-1.3.1/ntc/templates/nextjs/src/app/about/page.tsx +19 -0
  10. ntc_dev_kit-1.3.1/ntc/templates/nextjs/src/app/contact/page.tsx +21 -0
  11. ntc_dev_kit-1.3.1/ntc/templates/nextjs/src/app/error.tsx +20 -0
  12. ntc_dev_kit-1.3.1/ntc/templates/nextjs/src/app/globals.css +198 -0
  13. ntc_dev_kit-1.3.1/ntc/templates/nextjs/src/app/icon.svg +1 -0
  14. ntc_dev_kit-1.3.1/ntc/templates/nextjs/src/app/layout.tsx +66 -0
  15. ntc_dev_kit-1.3.1/ntc/templates/nextjs/src/app/loading.tsx +10 -0
  16. ntc_dev_kit-1.3.1/ntc/templates/nextjs/src/app/manifest.ts +16 -0
  17. ntc_dev_kit-1.3.1/ntc/templates/nextjs/src/app/not-found.tsx +19 -0
  18. ntc_dev_kit-1.3.1/ntc/templates/nextjs/src/app/opengraph-image.tsx +25 -0
  19. ntc_dev_kit-1.3.1/ntc/templates/nextjs/src/app/page.tsx +23 -0
  20. ntc_dev_kit-1.3.1/ntc/templates/nextjs/src/app/robots.ts +14 -0
  21. ntc_dev_kit-1.3.1/ntc/templates/nextjs/src/app/sitemap.ts +12 -0
  22. ntc_dev_kit-1.3.1/ntc/templates/nextjs/src/components/Footer.tsx +11 -0
  23. ntc_dev_kit-1.3.1/ntc/templates/nextjs/src/components/Header.tsx +24 -0
  24. ntc_dev_kit-1.3.1/ntc/templates/nextjs/src/utils/constants.ts +16 -0
  25. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/nextjs/structure.json +47 -3
  26. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_admin/index.html +1 -1
  27. ntc_dev_kit-1.3.1/ntc/templates/react_admin/public/favicon.svg +1 -0
  28. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_admin/structure.json +6 -1
  29. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_structure/index.html +1 -1
  30. ntc_dev_kit-1.3.1/ntc/templates/react_structure/public/favicon.svg +1 -0
  31. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_structure/structure.json +6 -1
  32. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/utils/prompts.py +179 -0
  33. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/wizard.py +33 -15
  34. ntc_dev_kit-1.3.1/ntc/workspace/__init__.py +2 -0
  35. ntc_dev_kit-1.3.1/ntc/workspace/clean.py +214 -0
  36. ntc_dev_kit-1.3.1/ntc/workspace/config.py +342 -0
  37. ntc_dev_kit-1.3.1/ntc/workspace/create.py +449 -0
  38. ntc_dev_kit-1.3.1/ntc/workspace/processes.py +309 -0
  39. ntc_dev_kit-1.3.1/ntc/workspace/screen.py +398 -0
  40. ntc_dev_kit-1.3.1/ntc/workspace/setup.py +108 -0
  41. ntc_dev_kit-1.3.1/ntc/workspace/start.py +112 -0
  42. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1/ntc_dev_kit.egg-info}/PKG-INFO +86 -3
  43. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc_dev_kit.egg-info/SOURCES.txt +25 -1
  44. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc_dev_kit.egg-info/requires.txt +4 -1
  45. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/pyproject.toml +6 -2
  46. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/setup.py +3 -2
  47. ntc_dev_kit-1.3.1/tests/test_templates.py +44 -0
  48. ntc_dev_kit-1.3.1/tests/test_workspace.py +96 -0
  49. ntc_dev_kit-1.2.1/ntc/templates/nextjs/src/app/globals.css +0 -30
  50. ntc_dev_kit-1.2.1/ntc/templates/nextjs/src/app/layout.tsx +0 -59
  51. ntc_dev_kit-1.2.1/ntc/templates/nextjs/src/app/page.tsx +0 -22
  52. ntc_dev_kit-1.2.1/ntc/templates/nextjs/src/components/Header.tsx +0 -18
  53. ntc_dev_kit-1.2.1/ntc/templates/nextjs/src/utils/constants.ts +0 -2
  54. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/LICENSE +0 -0
  55. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/app_creator.py +0 -0
  56. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/cli.py +0 -0
  57. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/composer/__init__.py +0 -0
  58. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/composer/main.py +0 -0
  59. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/deployment/__init__.py +0 -0
  60. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/main.py +0 -0
  61. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/__init__.py +0 -0
  62. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/auth_app/__init__.py +0 -0
  63. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/auth_app/admin.py +0 -0
  64. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/auth_app/apps.py +0 -0
  65. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/auth_app/migrations/0001_initial.py +0 -0
  66. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/auth_app/models.py +0 -0
  67. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/auth_app/serializers.py +0 -0
  68. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/auth_app/tasks.py +0 -0
  69. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/auth_app/templates/authentication/password_reset.html +0 -0
  70. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/auth_app/templates/authentication/password_reset.txt +0 -0
  71. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/auth_app/tests.py +0 -0
  72. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/auth_app/urls.py +0 -0
  73. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/auth_app/views.py +0 -0
  74. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/__init__.py +0 -0
  75. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/drf_structure.md +0 -0
  76. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/structure.json +0 -0
  77. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/.entry/start_core_backend.sh +0 -0
  78. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/.entry/start_tasks_backend.sh +0 -0
  79. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/CLAUDE.md +0 -0
  80. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/README.md +0 -0
  81. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/apps/app_admin.py +0 -0
  82. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/apps/app_apps.py +0 -0
  83. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/apps/app_models.py +0 -0
  84. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/apps/app_urls.py +0 -0
  85. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/apps/app_views.py +0 -0
  86. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/apps/common_apps.py +0 -0
  87. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/apps/common_checks.py +0 -0
  88. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/apps/common_models.py +0 -0
  89. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/ci/github_ci.yml +0 -0
  90. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/ci/pre_commit.yaml +0 -0
  91. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/config/gunicorn_config.py +0 -0
  92. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/config/http.conf +0 -0
  93. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/core/exceptions/handler.py +0 -0
  94. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/core/formatter.py +0 -0
  95. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/core/health.py +0 -0
  96. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/core/logger.py +0 -0
  97. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/core/pagination.py +0 -0
  98. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/core/renderers.py +0 -0
  99. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/core/response_wrapper.py +0 -0
  100. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/core/schema.py +0 -0
  101. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/core/services/azure/email/backend.py +0 -0
  102. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/core/services/azure/email/client.py +0 -0
  103. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/core/services/azure/email/notifier.py +0 -0
  104. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/core/services/object_storage.py +0 -0
  105. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/core/tests.py +0 -0
  106. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/core/utils/request.py +0 -0
  107. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/django_project/asgi.py +0 -0
  108. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/django_project/celery.py +0 -0
  109. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/django_project/dev_settings.py +0 -0
  110. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/django_project/django_settings.txt +0 -0
  111. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/django_project/prod_settings.py +0 -0
  112. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/django_project/project_init.py +0 -0
  113. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/django_project/schema.py +0 -0
  114. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/django_project/test_settings.py +0 -0
  115. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/django_project/urls.py +0 -0
  116. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/django_project/wsgi.py +0 -0
  117. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/docker/Dockerfile +0 -0
  118. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/docker/captain-definition +0 -0
  119. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/docker/docker-compose.yml +0 -0
  120. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/knowledge/knowledge_description.md +0 -0
  121. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/knowledge/knowledge_design_pattern.md +0 -0
  122. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/knowledge/knowledge_structure.md +0 -0
  123. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/root/README.md +0 -0
  124. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/root/django_env.txt +0 -0
  125. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/root/django_requirements.txt +0 -0
  126. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/root/django_requirements_dev.txt +0 -0
  127. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/root/dockerignore.txt +0 -0
  128. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/root/gitattributes.txt +0 -0
  129. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/root/gitignore.txt +0 -0
  130. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/root/manage.py +0 -0
  131. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/root/pytest_ini.txt +0 -0
  132. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/drf_structure/templates/root/ruff_toml.txt +0 -0
  133. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/flutter/.gitignore +0 -0
  134. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/flutter/.knowledge/knowledge_description.md +0 -0
  135. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/flutter/.knowledge/knowledge_design_pattern.md +0 -0
  136. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/flutter/.knowledge/knowledge_structure.md +0 -0
  137. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/flutter/CLAUDE.md +0 -0
  138. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/flutter/__init__.py +0 -0
  139. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/flutter/analysis_options.yaml +0 -0
  140. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/flutter/lib/core/config/app_config.dart +0 -0
  141. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/flutter/lib/core/config/environment.dart +0 -0
  142. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/flutter/lib/core/constants/app_constants.dart +0 -0
  143. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/flutter/lib/core/network/dio_client.dart +0 -0
  144. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/flutter/lib/features/home/presentation/home_screen.dart +0 -0
  145. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/flutter/lib/l10n/app_localizations.dart +0 -0
  146. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/flutter/lib/main.dart +0 -0
  147. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/flutter/lib/services/api_service.dart +0 -0
  148. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/flutter/lib/shared/localization/locale_provider.dart +0 -0
  149. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/flutter/lib/shared/theme/app_theme.dart +0 -0
  150. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/flutter/lib/shared/theme/theme_provider.dart +0 -0
  151. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/flutter/main.py +0 -0
  152. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/flutter/pubspec.yaml +0 -0
  153. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/flutter/structure.json +0 -0
  154. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/nextjs/.gitignore +0 -0
  155. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/nextjs/CLAUDE.md +0 -0
  156. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/nextjs/README.md +0 -0
  157. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/nextjs/__init__.py +0 -0
  158. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/nextjs/eslint.config.mjs +0 -0
  159. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/nextjs/knowledge/knowledge_description.md +0 -0
  160. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/nextjs/knowledge/knowledge_design_pattern.md +0 -0
  161. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/nextjs/knowledge/knowledge_structure.md +0 -0
  162. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/nextjs/main.py +0 -0
  163. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/nextjs/next.config.js +0 -0
  164. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/nextjs/package.json +0 -0
  165. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/nextjs/src/services/api.ts +0 -0
  166. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/nextjs/src/services/server.ts +0 -0
  167. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/nextjs/tsconfig.json +0 -0
  168. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_admin/.env.example +0 -0
  169. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_admin/.gitignore +0 -0
  170. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_admin/CLAUDE.md +0 -0
  171. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_admin/README.md +0 -0
  172. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_admin/__init__.py +0 -0
  173. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_admin/eslint.config.js +0 -0
  174. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_admin/knowledge/knowledge_description.md +0 -0
  175. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_admin/knowledge/knowledge_design_pattern.md +0 -0
  176. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_admin/knowledge/knowledge_structure.md +0 -0
  177. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_admin/main.py +0 -0
  178. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_admin/package.json +0 -0
  179. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_admin/src/App.tsx +0 -0
  180. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_admin/src/components/ProtectedRoute.tsx +0 -0
  181. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_admin/src/components/Sidebar.tsx +0 -0
  182. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_admin/src/components/TopNav.tsx +0 -0
  183. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_admin/src/context/AuthContext.tsx +0 -0
  184. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_admin/src/context/ThemeContext.tsx +0 -0
  185. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_admin/src/context/WorkspaceContext.tsx +0 -0
  186. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_admin/src/hooks/useApi.ts +0 -0
  187. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_admin/src/index.css +0 -0
  188. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_admin/src/layouts/AuthLayout.tsx +0 -0
  189. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_admin/src/layouts/DashboardLayout.tsx +0 -0
  190. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_admin/src/main.tsx +0 -0
  191. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_admin/src/pages/DashboardPage.tsx +0 -0
  192. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_admin/src/pages/auth/LoginPage.tsx +0 -0
  193. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_admin/src/services/api.service.ts +0 -0
  194. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_admin/src/services/base.service.ts +0 -0
  195. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_admin/src/services/token.ts +0 -0
  196. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_admin/src/vite-env.d.ts +0 -0
  197. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_admin/tsconfig.app.json +0 -0
  198. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_admin/tsconfig.json +0 -0
  199. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_admin/tsconfig.node.json +0 -0
  200. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_admin/vite.config.ts +0 -0
  201. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_structure/App.css +0 -0
  202. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_structure/CLAUDE.md +0 -0
  203. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_structure/__init__.py +0 -0
  204. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_structure/index.css +0 -0
  205. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_structure/knowledge/knowledge_description.md +0 -0
  206. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_structure/knowledge/knowledge_design_pattern.md +0 -0
  207. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_structure/knowledge/knowledge_structure.md +0 -0
  208. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_structure/main.py +0 -0
  209. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_structure/package.json +0 -0
  210. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_structure/src/App.tsx +0 -0
  211. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_structure/src/components/Header.tsx +0 -0
  212. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_structure/src/main.tsx +0 -0
  213. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_structure/src/services/api.ts +0 -0
  214. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_structure/src/utils/constants.ts +0 -0
  215. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_structure/src/vite-env.d.ts +0 -0
  216. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_structure/tsconfig.app.json +0 -0
  217. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_structure/tsconfig.json +0 -0
  218. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_structure/tsconfig.node.json +0 -0
  219. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/templates/react_structure/vite.config.ts +0 -0
  220. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/ui/__init__.py +0 -0
  221. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/ui/app.py +0 -0
  222. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/utils/__init__.py +0 -0
  223. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/utils/environment.py +0 -0
  224. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/utils/output.py +0 -0
  225. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/utils/shell.py +0 -0
  226. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc/utils/validation.py +0 -0
  227. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc_dev_kit.egg-info/dependency_links.txt +0 -0
  228. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc_dev_kit.egg-info/entry_points.txt +0 -0
  229. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/ntc_dev_kit.egg-info/top_level.txt +0 -0
  230. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/requirements.txt +0 -0
  231. {ntc_dev_kit-1.2.1 → ntc_dev_kit-1.3.1}/setup.cfg +0 -0
@@ -3,7 +3,7 @@ include LICENSE
3
3
  include requirements.txt
4
4
  recursive-include ntc/templates *.py *.json *.md *.txt *.html *.ts *.tsx *.css *.scss *.yml *.yaml *.sh *.conf *.cfg
5
5
  recursive-include ntc/templates *.env.example *.gitignore
6
- recursive-include ntc/templates *.js *.mjs *.dart Dockerfile captain-definition
6
+ recursive-include ntc/templates *.js *.mjs *.dart *.svg *.png *.ico Dockerfile captain-definition
7
7
 
8
8
  global-exclude __pycache__
9
9
  global-exclude *.py[co]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ntc-dev-kit
3
- Version: 1.2.1
3
+ Version: 1.3.1
4
4
  Summary: Nexent Toolkit Console - A CLI tool for scaffolding Django REST Framework, React, Next.js, and Flutter projects
5
5
  Home-page: https://github.com/nexent/ntc
6
6
  Author: Nexent
@@ -26,7 +26,8 @@ Description-Content-Type: text/markdown
26
26
  License-File: LICENSE
27
27
  Requires-Dist: colorama>=0.4.6
28
28
  Requires-Dist: pyyaml>=6.0
29
- Requires-Dist: textual>=0.47.0
29
+ Requires-Dist: textual>=1.0
30
+ Requires-Dist: tomli>=2.0; python_version < "3.11"
30
31
  Provides-Extra: dev
31
32
  Requires-Dist: build>=1.0; extra == "dev"
32
33
  Requires-Dist: twine>=4.0; extra == "dev"
@@ -121,7 +122,89 @@ ntc init -t nextjs --name site --install --yes
121
122
  | `--with-auth` / `--no-auth` | Django: include the sign-in app (custom User model, JWT, migration included) |
122
123
  | `--env` | Django: `venv`, `conda`, `existing` (the active virtualenv) or `skip` |
123
124
  | `--install` / `--no-install` | Others: run `npm install` / `flutter pub get` |
124
- | `--yes`, `-y` | Ask nothing; needs `--name` and `--technology` |
125
+ | `--apps` | A workspace instead of one app: `backend,website,dashboard,admin,mobile` (any of them) |
126
+ | `--git` | Workspace: `per-app` (default), `single` or `none` |
127
+ | `--yes`, `-y` | Ask nothing; needs `--name` and `--technology` (or `--apps`) |
128
+
129
+ ### Workspaces: several apps at once
130
+
131
+ Tick more than one app at **What are you building?** (Space ticks) - say a backend, a website and
132
+ an admin dashboard - and they're created side by side in one folder, already connected:
133
+
134
+ - each app gets its own port, the frontends point at the backend's API, and the backend allows
135
+ the frontends' origins (CORS);
136
+ - dependencies install for all apps at once, one line each;
137
+ - git: a repository per app (plus a small one at the root for `ntc.toml`), one for everything,
138
+ or none;
139
+ - `ntc.toml` at the root says how each app is set up and run.
140
+
141
+ ```
142
+ kaya/
143
+ ├── ntc.toml # the apps, their ports, setup and run commands, env
144
+ ├── README.md
145
+ ├── backend/ # Django REST API http://127.0.0.1:8000
146
+ ├── website/ # Next.js http://127.0.0.1:3000
147
+ └── admin/ # React admin http://127.0.0.1:5173
148
+ ```
149
+
150
+ Then, from anywhere inside the workspace:
151
+
152
+ ```bash
153
+ ntc start # every app in this terminal: a tab each plus "All"
154
+ ntc start backend admin # just these (and what they need)
155
+ ntc start --plain # interleaved output instead (CI, logs)
156
+ ntc setup # environments, .env files, dependencies - after a clone or a deep clean
157
+ ntc clean # build output and caches; shows the space freed
158
+ ntc clean --deep # also node_modules and Python environments
159
+ ntc add # another app, wired in like the rest
160
+ ```
161
+
162
+ In `ntc start`, **All** is a grid of up to four terminals, one per app (**[** and **]** page
163
+ through more), with each app's port and status on its border and its output colour-coded: errors
164
+ red, warnings amber, ready/compiled green, HTTP status codes by class. **Tab** moves between the
165
+ terminals and the keys act on the focused one: **r** restarts, **s** stops or starts, **o** opens
166
+ it in the browser, **i** types into it (Flutter's `r` hot reload), **c** clears, **Enter** opens it
167
+ full screen (**Esc** comes back). **1-9** jump to an app's own tab, **0** back to all, **q** quits
168
+ and stops everything. Apps wait for the ones they `need` (the backend) before starting, and a port
169
+ that's already taken is reported instead of crashing.
170
+
171
+ `ntc clean` only removes what the tools rebuild (`.next`, `dist`, `__pycache__`, caches; with
172
+ `--deep` also `node_modules` and `env`), never anything git tracks, and skips apps that are running.
173
+ `--dry-run` shows what would go.
174
+
175
+ `ntc.toml` is plain TOML and meant to be edited and committed (no secrets in it - those stay in
176
+ each app's `.env`):
177
+
178
+ ```toml
179
+ name = "kaya"
180
+
181
+ [apps.backend]
182
+ kind = "django"
183
+ path = "backend"
184
+ port = 8000
185
+ python = "env"
186
+ setup = ["{python} -m pip install -r requirements-dev.txt", "{python} manage.py migrate"]
187
+ run = "{python} manage.py runserver 127.0.0.1:{port}"
188
+ # also = { worker = "{python} -m celery -A kaya worker -B -l INFO" }
189
+
190
+ [apps.backend.env]
191
+ CORS_ALLOWED_ORIGINS = "{frontends.origins}"
192
+
193
+ [apps.website]
194
+ kind = "nextjs"
195
+ path = "website"
196
+ port = 3000
197
+ needs = ["backend"]
198
+ run = "npm run dev -- --port {port}"
199
+ repo = "git@github.com:you/website.git" # `ntc setup` clones it when the folder is missing
200
+
201
+ [apps.website.env]
202
+ NEXT_PUBLIC_API_BASE_URL = "{backend.url}/api/v1"
203
+ ```
204
+
205
+ Placeholders: `{port}`, `{url}`, `{python}` (this app's), `{<app>.port}`, `{<app>.url}`,
206
+ `{frontends.origins}`. Commands are one program with its arguments (no `&&`), so they run the
207
+ same on Windows and Unix.
125
208
 
126
209
  ### Technology Options
127
210
 
@@ -81,7 +81,89 @@ ntc init -t nextjs --name site --install --yes
81
81
  | `--with-auth` / `--no-auth` | Django: include the sign-in app (custom User model, JWT, migration included) |
82
82
  | `--env` | Django: `venv`, `conda`, `existing` (the active virtualenv) or `skip` |
83
83
  | `--install` / `--no-install` | Others: run `npm install` / `flutter pub get` |
84
- | `--yes`, `-y` | Ask nothing; needs `--name` and `--technology` |
84
+ | `--apps` | A workspace instead of one app: `backend,website,dashboard,admin,mobile` (any of them) |
85
+ | `--git` | Workspace: `per-app` (default), `single` or `none` |
86
+ | `--yes`, `-y` | Ask nothing; needs `--name` and `--technology` (or `--apps`) |
87
+
88
+ ### Workspaces: several apps at once
89
+
90
+ Tick more than one app at **What are you building?** (Space ticks) - say a backend, a website and
91
+ an admin dashboard - and they're created side by side in one folder, already connected:
92
+
93
+ - each app gets its own port, the frontends point at the backend's API, and the backend allows
94
+ the frontends' origins (CORS);
95
+ - dependencies install for all apps at once, one line each;
96
+ - git: a repository per app (plus a small one at the root for `ntc.toml`), one for everything,
97
+ or none;
98
+ - `ntc.toml` at the root says how each app is set up and run.
99
+
100
+ ```
101
+ kaya/
102
+ ├── ntc.toml # the apps, their ports, setup and run commands, env
103
+ ├── README.md
104
+ ├── backend/ # Django REST API http://127.0.0.1:8000
105
+ ├── website/ # Next.js http://127.0.0.1:3000
106
+ └── admin/ # React admin http://127.0.0.1:5173
107
+ ```
108
+
109
+ Then, from anywhere inside the workspace:
110
+
111
+ ```bash
112
+ ntc start # every app in this terminal: a tab each plus "All"
113
+ ntc start backend admin # just these (and what they need)
114
+ ntc start --plain # interleaved output instead (CI, logs)
115
+ ntc setup # environments, .env files, dependencies - after a clone or a deep clean
116
+ ntc clean # build output and caches; shows the space freed
117
+ ntc clean --deep # also node_modules and Python environments
118
+ ntc add # another app, wired in like the rest
119
+ ```
120
+
121
+ In `ntc start`, **All** is a grid of up to four terminals, one per app (**[** and **]** page
122
+ through more), with each app's port and status on its border and its output colour-coded: errors
123
+ red, warnings amber, ready/compiled green, HTTP status codes by class. **Tab** moves between the
124
+ terminals and the keys act on the focused one: **r** restarts, **s** stops or starts, **o** opens
125
+ it in the browser, **i** types into it (Flutter's `r` hot reload), **c** clears, **Enter** opens it
126
+ full screen (**Esc** comes back). **1-9** jump to an app's own tab, **0** back to all, **q** quits
127
+ and stops everything. Apps wait for the ones they `need` (the backend) before starting, and a port
128
+ that's already taken is reported instead of crashing.
129
+
130
+ `ntc clean` only removes what the tools rebuild (`.next`, `dist`, `__pycache__`, caches; with
131
+ `--deep` also `node_modules` and `env`), never anything git tracks, and skips apps that are running.
132
+ `--dry-run` shows what would go.
133
+
134
+ `ntc.toml` is plain TOML and meant to be edited and committed (no secrets in it - those stay in
135
+ each app's `.env`):
136
+
137
+ ```toml
138
+ name = "kaya"
139
+
140
+ [apps.backend]
141
+ kind = "django"
142
+ path = "backend"
143
+ port = 8000
144
+ python = "env"
145
+ setup = ["{python} -m pip install -r requirements-dev.txt", "{python} manage.py migrate"]
146
+ run = "{python} manage.py runserver 127.0.0.1:{port}"
147
+ # also = { worker = "{python} -m celery -A kaya worker -B -l INFO" }
148
+
149
+ [apps.backend.env]
150
+ CORS_ALLOWED_ORIGINS = "{frontends.origins}"
151
+
152
+ [apps.website]
153
+ kind = "nextjs"
154
+ path = "website"
155
+ port = 3000
156
+ needs = ["backend"]
157
+ run = "npm run dev -- --port {port}"
158
+ repo = "git@github.com:you/website.git" # `ntc setup` clones it when the folder is missing
159
+
160
+ [apps.website.env]
161
+ NEXT_PUBLIC_API_BASE_URL = "{backend.url}/api/v1"
162
+ ```
163
+
164
+ Placeholders: `{port}`, `{url}`, `{python}` (this app's), `{<app>.port}`, `{<app>.url}`,
165
+ `{frontends.origins}`. Commands are one program with its arguments (no `&&`), so they run the
166
+ same on Windows and Unix.
85
167
 
86
168
  ### Technology Options
87
169
 
@@ -1,5 +1,5 @@
1
1
  """NTC - Nexent Toolkit Console."""
2
2
 
3
- __version__ = "1.2.1"
3
+ __version__ = "1.3.1"
4
4
  __author__ = "Nexent"
5
5
  __license__ = "MIT"
@@ -284,8 +284,10 @@ Examples:
284
284
  ntc init -t django --name shop-api --with-auth --env venv --yes
285
285
  # No questions at all (scripts, CI, AI agents)
286
286
  ntc init -t nextjs --name site --install --yes
287
- ntc compose myproject # Compose full-stack project with multiple components
288
- ntc start # Start all services from ntc.yml configuration
287
+ ntc init --name shop --apps backend,website,admin --yes
288
+ # A workspace: several apps wired together, plus ntc.toml
289
+ ntc start # Run the workspace's apps in this terminal
290
+ ntc setup / ntc clean / ntc add
289
291
  ntc create app myapp # Create new Django app
290
292
  ntc drf init path name # Legacy Django REST Framework initialization
291
293
  """
@@ -321,7 +323,11 @@ Examples:
321
323
  help="Next.js/React/Flutter: don't install dependencies")
322
324
  init_parser.add_argument("--yes", "-y", action="store_true",
323
325
  help="Don't ask: use the options given and defaults for the rest "
324
- "(requires --name and --technology)")
326
+ "(requires --name and --technology or --apps)")
327
+ init_parser.add_argument("--apps", help="A workspace of several apps, comma-separated: "
328
+ "backend, website, dashboard, admin, mobile")
329
+ init_parser.add_argument("--git", choices=["per-app", "single", "none"],
330
+ help="Workspace: a repository per app (default), one for everything, or none")
325
331
 
326
332
  # Create command for apps
327
333
  create_parser = subparsers.add_parser("create", help="Create new components")
@@ -345,13 +351,32 @@ Examples:
345
351
  drf_init_parser.add_argument("name", help="Project name")
346
352
 
347
353
  # Composer command for full-stack project composition
348
- composer_parser = subparsers.add_parser("compose", help="Compose a full-stack project with multiple components")
349
- composer_parser.add_argument("project_name", help="Name of the project")
350
- composer_parser.add_argument("--path", help="Base path to create the project (default: current directory)")
354
+ subparsers.add_parser("compose", help="Replaced by `ntc init` (pick several apps)")
355
+ add_parser = subparsers.add_parser("add", help="Add apps to the workspace")
356
+ add_parser.add_argument("apps", nargs="*", help="backend, website, dashboard, admin, mobile")
357
+ add_parser.add_argument("--name", help="Folder name (when adding one app)")
358
+ add_parser.add_argument("--env", choices=["venv", "conda", "existing", "skip"], help="Backend: Python environment")
359
+ add_auth = add_parser.add_mutually_exclusive_group()
360
+ add_auth.add_argument("--with-auth", dest="with_auth", action="store_true", default=None)
361
+ add_auth.add_argument("--no-auth", dest="with_auth", action="store_false")
362
+ add_install = add_parser.add_mutually_exclusive_group()
363
+ add_install.add_argument("--install", dest="install", action="store_true", default=None)
364
+ add_install.add_argument("--no-install", dest="install", action="store_false")
365
+ add_parser.add_argument("--yes", "-y", action="store_true", help="Don't ask")
366
+ setup_parser = subparsers.add_parser("setup", help="Install the workspace's apps (after a clone or a deep clean)")
367
+ setup_parser.add_argument("apps", nargs="*", help="Only these apps")
368
+ clean_parser = subparsers.add_parser("clean", help="Delete build output and caches; say how much space it freed")
369
+ clean_parser.add_argument("apps", nargs="*", help="Only these apps")
370
+ clean_parser.add_argument("--deep", action="store_true",
371
+ help="Also dependencies: node_modules, Python environments (`ntc setup` reinstalls)")
372
+ clean_parser.add_argument("--dry-run", action="store_true", help="Show what would go, delete nothing")
373
+ clean_parser.add_argument("--yes", "-y", action="store_true", help="Don't ask before deleting")
351
374
 
352
375
  # Start services command
353
- start_parser = subparsers.add_parser("start", help="Start all services defined in ntc.yml")
354
- start_parser.add_argument("--path", help="Path to project root directory (default: current directory)")
376
+ start_parser = subparsers.add_parser("start", help="Run the workspace's apps together in this terminal")
377
+ start_parser.add_argument("apps", nargs="*", help="Only these apps (and the ones they need)")
378
+ start_parser.add_argument("--plain", action="store_true",
379
+ help="Interleaved output instead of the full-screen view (CI, logs)")
355
380
 
356
381
  # Doctor command for setup diagnostics
357
382
  doctor_parser = subparsers.add_parser("doctor", help="Check setup and fix common issues")
@@ -364,12 +389,20 @@ Examples:
364
389
  if args.command == "init":
365
390
  technology = args.technology or args.frontend or args.backend
366
391
  technology = {"drf": "django", "laravel": "django"}.get(technology, technology)
367
- if args.yes and not (args.name and technology):
368
- print_error("--yes needs --name and --technology, so there is nothing left to ask.")
392
+ apps = [a.strip() for a in args.apps.split(",") if a.strip()] if args.apps else None
393
+ if apps and technology:
394
+ print_error("Give either --technology (one app) or --apps (a workspace), not both.")
369
395
  sys.exit(2)
396
+ if args.yes and not (args.name and (technology or apps)):
397
+ print_error("--yes needs --name and --technology (or --apps), so there is nothing left to ask.")
398
+ sys.exit(2)
399
+ if apps and len(apps) == 1:
400
+ from ntc.workspace.config import ROLE_KINDS
401
+ technology, apps = ROLE_KINDS.get(apps[0], apps[0]), None
370
402
  from ntc.wizard import run as run_wizard
371
403
  created = run_wizard(technology=technology, name=args.name, path=args.path, with_auth=args.with_auth,
372
- env_choice=args.env, install=args.install, assume_yes=args.yes)
404
+ env_choice=args.env, install=args.install, assume_yes=args.yes,
405
+ apps=apps, git=args.git)
373
406
  sys.exit(0 if created else 1)
374
407
  elif args.command == "create" and args.create_type == "app":
375
408
  if not is_valid_project_name(args.app_name):
@@ -385,22 +418,23 @@ Examples:
385
418
  from ntc.templates.drf_structure.main import init_drf_project
386
419
  init_drf_project(args.path, args.name)
387
420
  elif args.command == "compose":
388
- # Composer for full-stack project composition
389
- if not is_valid_project_name(args.project_name):
390
- print_error("Project name may only contain letters, numbers, underscores, and hyphens!")
391
- sys.exit(1)
392
- from ntc.composer.main import compose_project
393
- if args.path:
394
- compose_project(args.project_name, args.path)
395
- else:
396
- compose_project(args.project_name)
421
+ print_info("`ntc compose` is now part of `ntc init`: pick several apps (Space ticks them) and they're "
422
+ "created together as a workspace, with an ntc.toml for `ntc start`.")
423
+ sys.exit(2)
397
424
  elif args.command == "start":
398
- # Start services from ntc.yml configuration
399
- from ntc.composer.main import start_services
400
- if args.path:
401
- start_services(args.path)
402
- else:
403
- start_services()
425
+ from ntc.workspace.start import run as run_start
426
+ sys.exit(0 if run_start(args.apps, plain=args.plain) else 1)
427
+ elif args.command == "setup":
428
+ from ntc.workspace.setup import run as run_setup
429
+ sys.exit(0 if run_setup(args.apps) else 1)
430
+ elif args.command == "clean":
431
+ from ntc.workspace.clean import run as run_clean
432
+ sys.exit(0 if run_clean(args.apps, deep=args.deep, assume_yes=args.yes, dry_run=args.dry_run) else 1)
433
+ elif args.command == "add":
434
+ from ntc.workspace.create import run_add
435
+ env_choice = {"existing": "active"}.get(args.env, args.env)
436
+ sys.exit(0 if run_add(args.apps, name=args.name, with_auth=args.with_auth, env_choice=env_choice,
437
+ install=args.install, assume_yes=args.yes) else 1)
404
438
  elif args.command == "doctor":
405
439
  run_doctor()
406
440
  elif args.command == "tui":
@@ -412,6 +446,7 @@ Examples:
412
446
  print(f"\n {Fore.LIGHTBLACK_EX}Quick Start:{Style.RESET_ALL}")
413
447
  print(f" {Fore.WHITE}ntc tui{Style.RESET_ALL} {Fore.LIGHTBLACK_EX}interactive terminal UI{Style.RESET_ALL}")
414
448
  print(f" {Fore.WHITE}ntc init{Style.RESET_ALL} {Fore.LIGHTBLACK_EX}interactive setup{Style.RESET_ALL}")
449
+ print(f" {Fore.WHITE}ntc start{Style.RESET_ALL} {Fore.LIGHTBLACK_EX}run a workspace's apps{Style.RESET_ALL}")
415
450
  print(f" {Fore.WHITE}ntc init -t django{Style.RESET_ALL} {Fore.LIGHTBLACK_EX}Django project{Style.RESET_ALL}")
416
451
  print(f" {Fore.WHITE}ntc doctor{Style.RESET_ALL} {Fore.LIGHTBLACK_EX}check setup{Style.RESET_ALL}")
417
452
  print()
@@ -373,6 +373,18 @@ def _render_project(project_root, project_name, original_name, with_auth):
373
373
  return True
374
374
 
375
375
 
376
+ def write_env_file(project_root, project_name, original_name=None):
377
+ """Write the project's .env (development defaults, a new SECRET_KEY). It's gitignored, so a
378
+ fresh clone has none; `ntc setup` uses this to recreate it."""
379
+ structure_file = os.path.join(os.path.dirname(__file__), "structure.json")
380
+ with open(structure_file, "r", encoding="utf-8") as f:
381
+ template = json.load(f)[".env"]["template"]
382
+ variables = {"project_name": project_name, "original_name": original_name or project_name,
383
+ "secret_key": secrets.token_urlsafe(50)}
384
+ with open(os.path.join(project_root, ".env"), "w", encoding="utf-8") as f:
385
+ f.write(get_template_content(template, variables))
386
+
387
+
376
388
  def init_drf_project(base_path, project_name, with_auth=False, env_choice=None):
377
389
  """Create a DRF project in base_path/<sanitized name> and set up its environment.
378
390
 
@@ -8,3 +8,9 @@ NEXT_PUBLIC_SITE_URL=http://localhost:3000
8
8
  # SEO Configuration
9
9
  NEXT_PUBLIC_SITE_DESCRIPTION=A modern website built with Next.js
10
10
  NEXT_PUBLIC_SITE_KEYWORDS=nextjs,react,typescript
11
+
12
+ # Search engines: true on staging/preview copies (robots.txt then disallows everything)
13
+ NEXT_PUBLIC_NOINDEX=false
14
+ # Search console verification codes (leave empty to add no tag)
15
+ NEXT_PUBLIC_GOOGLE_SITE_VERIFICATION=
16
+ NEXT_PUBLIC_BING_SITE_VERIFICATION=
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="32" height="32"><rect width="64" height="64" rx="14" fill="#0f172a"/><path d="M20 44V20h6l12 15V20h6v24h-6L26 29v15z" fill="#fff"/></svg>
@@ -0,0 +1,19 @@
1
+ import type { Metadata } from 'next'
2
+ import { SITE_NAME } from '@/utils/constants'
3
+
4
+ export const metadata: Metadata = {
5
+ title: 'About',
6
+ description: `About ${SITE_NAME}.`,
7
+ alternates: { canonical: '/about' },
8
+ }
9
+
10
+ export default function About() {
11
+ return (
12
+ <section className="page">
13
+ <div className="container prose">
14
+ <h1>About {SITE_NAME}</h1>
15
+ <p>Tell visitors who you are, what you do and why it matters.</p>
16
+ </div>
17
+ </section>
18
+ )
19
+ }
@@ -0,0 +1,21 @@
1
+ import type { Metadata } from 'next'
2
+ import { SITE_NAME } from '@/utils/constants'
3
+
4
+ export const metadata: Metadata = {
5
+ title: 'Contact',
6
+ description: `Get in touch with ${SITE_NAME}.`,
7
+ alternates: { canonical: '/contact' },
8
+ }
9
+
10
+ export default function Contact() {
11
+ return (
12
+ <section className="page">
13
+ <div className="container prose">
14
+ <h1>Contact</h1>
15
+ <p>
16
+ Email us at <a href="mailto:hello@example.com">hello@example.com</a> and we&apos;ll get back to you.
17
+ </p>
18
+ </div>
19
+ </section>
20
+ )
21
+ }
@@ -0,0 +1,20 @@
1
+ 'use client'
2
+
3
+ import { useEffect } from 'react'
4
+
5
+ // Shown when a page throws while rendering. The header and footer (the layout) stay.
6
+ export default function Error({ error, reset }: { error: Error & { digest?: string }; reset: () => void }) {
7
+ useEffect(() => {
8
+ console.error(error)
9
+ }, [error])
10
+
11
+ return (
12
+ <section className="page">
13
+ <div className="container prose">
14
+ <h1>Something went wrong</h1>
15
+ <p>Please try again. If it keeps happening, let us know.</p>
16
+ <p><button className="button" onClick={() => reset()}>Try again</button></p>
17
+ </div>
18
+ </section>
19
+ )
20
+ }
@@ -0,0 +1,198 @@
1
+ /* Base styles sit in the base layer, so utility classes (e.g. Tailwind's, if added) override them
2
+ instead of losing to unlayered CSS. */
3
+ @layer base {
4
+ :root {
5
+ --text: #0f172a;
6
+ --muted: #475569;
7
+ --background: #ffffff;
8
+ --surface: #f8fafc;
9
+ --border: #e2e8f0;
10
+ --accent: #0f172a;
11
+ --accent-text: #ffffff;
12
+ }
13
+
14
+ * {
15
+ box-sizing: border-box;
16
+ padding: 0;
17
+ margin: 0;
18
+ }
19
+
20
+ html,
21
+ body {
22
+ max-width: 100vw;
23
+ overflow-x: hidden;
24
+ }
25
+
26
+ body {
27
+ min-height: 100vh;
28
+ display: flex;
29
+ flex-direction: column;
30
+ background: var(--background);
31
+ color: var(--text);
32
+ line-height: 1.6;
33
+ -webkit-font-smoothing: antialiased;
34
+ -moz-osx-font-smoothing: grayscale;
35
+ }
36
+
37
+ main {
38
+ flex: 1;
39
+ }
40
+
41
+ a {
42
+ color: inherit;
43
+ text-decoration: none;
44
+ }
45
+
46
+ img {
47
+ max-width: 100%;
48
+ height: auto;
49
+ }
50
+ }
51
+
52
+ @layer components {
53
+ .container {
54
+ width: 100%;
55
+ max-width: 1120px;
56
+ margin: 0 auto;
57
+ padding: 0 1.25rem;
58
+ }
59
+
60
+ .skip-link {
61
+ position: absolute;
62
+ left: -9999px;
63
+ }
64
+
65
+ .skip-link:focus {
66
+ left: 1rem;
67
+ top: 1rem;
68
+ padding: 0.5rem 1rem;
69
+ background: var(--accent);
70
+ color: var(--accent-text);
71
+ z-index: 10;
72
+ }
73
+
74
+ .site-header {
75
+ border-bottom: 1px solid var(--border);
76
+ }
77
+
78
+ .nav {
79
+ display: flex;
80
+ align-items: center;
81
+ justify-content: space-between;
82
+ gap: 1rem;
83
+ min-height: 4rem;
84
+ }
85
+
86
+ .brand {
87
+ display: flex;
88
+ align-items: center;
89
+ gap: 0.6rem;
90
+ font-weight: 700;
91
+ font-size: 1.1rem;
92
+ }
93
+
94
+ .nav ul {
95
+ display: flex;
96
+ gap: 1.5rem;
97
+ list-style: none;
98
+ }
99
+
100
+ .nav ul a {
101
+ color: var(--muted);
102
+ }
103
+
104
+ .nav ul a:hover {
105
+ color: var(--text);
106
+ }
107
+
108
+ .hero {
109
+ padding: 6rem 0;
110
+ background: var(--surface);
111
+ }
112
+
113
+ .hero h1 {
114
+ font-size: clamp(2.25rem, 6vw, 3.5rem);
115
+ line-height: 1.1;
116
+ }
117
+
118
+ .lead {
119
+ margin-top: 1rem;
120
+ max-width: 40rem;
121
+ font-size: 1.2rem;
122
+ color: var(--muted);
123
+ }
124
+
125
+ .actions {
126
+ display: flex;
127
+ flex-wrap: wrap;
128
+ gap: 0.75rem;
129
+ margin-top: 2rem;
130
+ }
131
+
132
+ .button {
133
+ display: inline-block;
134
+ padding: 0.7rem 1.3rem;
135
+ border: 1px solid var(--accent);
136
+ border-radius: 0.5rem;
137
+ background: var(--accent);
138
+ color: var(--accent-text);
139
+ font: inherit;
140
+ font-weight: 600;
141
+ cursor: pointer;
142
+ }
143
+
144
+ .button-secondary {
145
+ background: transparent;
146
+ color: var(--accent);
147
+ }
148
+
149
+ .page {
150
+ padding: 4rem 0;
151
+ }
152
+
153
+ .prose h1 {
154
+ font-size: 2.25rem;
155
+ line-height: 1.2;
156
+ margin-bottom: 1rem;
157
+ }
158
+
159
+ .prose p + p {
160
+ margin-top: 1rem;
161
+ }
162
+
163
+ .prose a:not(.button) {
164
+ text-decoration: underline;
165
+ }
166
+
167
+ .spinner {
168
+ width: 2rem;
169
+ height: 2rem;
170
+ border: 3px solid var(--border);
171
+ border-top-color: var(--accent);
172
+ border-radius: 50%;
173
+ animation: spin 0.8s linear infinite;
174
+ }
175
+
176
+ .site-footer {
177
+ padding: 2rem 0;
178
+ border-top: 1px solid var(--border);
179
+ color: var(--muted);
180
+ font-size: 0.9rem;
181
+ }
182
+
183
+ @media (max-width: 640px) {
184
+ .nav ul {
185
+ gap: 1rem;
186
+ }
187
+
188
+ .hero {
189
+ padding: 4rem 0;
190
+ }
191
+ }
192
+ }
193
+
194
+ @keyframes spin {
195
+ to {
196
+ transform: rotate(360deg);
197
+ }
198
+ }
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" rx="14" fill="#0f172a"/><path d="M20 44V20h6l12 15V20h6v24h-6L26 29v15z" fill="#fff"/></svg>