Skip to content

new updates#48

Closed
S4NKALP wants to merge 32 commits into
mainfrom
dev
Closed

new updates#48
S4NKALP wants to merge 32 commits into
mainfrom
dev

Conversation

@S4NKALP

@S4NKALP S4NKALP commented May 10, 2026

Copy link
Copy Markdown
Owner
  • need proper testing

S4NKALP added 27 commits May 10, 2026 23:26
…project scaffolding

Adds creation of Dockerfile, docker-compose.yml, and .dockerignore when `use_docker` metadata is true, integrates the step into the setup pipeline, and registers the task in `SetupCreator`. Enables out‑of‑the‑box Docker support for generated Django projects.

New Features
- Generate Dockerfile, docker-compose.yml, and .dockerignore from templates upon project creation.
- Register Docker file creation step in the setup pipeline and execute only when `use_docker=True`.
- Extend metadata config with `use_docker` flag to control Docker file inclusion.

Enhancements
- Streamline Docker file generation through templated rendering, ensuring a consistent project structure.

Bug Fixes
- None.
…l, and .dockerignore templates

The new templates provide a ready‑to‑use Docker environment for Django projects, including system dependencies, container orchestration, and build‑context exclusions.

New Features
- Dockerfile template with Python 3.13‑slim base, environment variables, apt dependencies, and Gunicorn command.
- docker-compose.yml template with web service and conditional database services (PostgreSQL or MySQL).
- .dockerignore template to exclude irrelevant files and speed up Docker builds.

Enhancements
- Updated .gitignore with Docker‑specific entries to keep repositories clean.

No Bug Fixes.
This release extends the UI to let users opt‑in to Docker support and Vite integration when generating a Django project.

- New Features
  - Add `use_docker` and `use_vite` fields to `StructureOptions`
  - Implement `get_docker_choice` method with a confirmation prompt- Enhancements
  - Propagate Docker and Vite selections through metadata and CLI prompts  - Include Dockerfile and docker‑compose when Docker is enabled
- Bug Fixes  - (none)
Add `use_docker` and `use_vite` boolean fields to `ProjectMetadata` and include them in the metadata dictionary serialization.

- New feature: expose Docker and Vite enable flags.
- Enhancement: extend metadata output to reflect the new configuration options.
This script validates template consistency and metadata usage, ensuring generated configurations are correct across all use‑case combinations. It provides automated checks to catch missing variable replacements, unused metadata fields, and mis‑configured requirements.

- New Features
  - Introduce `check_template_consistency` to detect unreplaced `[[` variables in all templates.
  - Implement `check_metadata_usage` to verify that all metadata flags are correctly applied.
  - Iterate through all feature combinations to test requirements and settings rendering.

- Enhancements  - Added structured console output sections for each generated example file.
  - Integrated explicit error reporting for template rendering failures.

- Bug Fixes
  - (none)
- Add `UIFormatter.get_vite_choice()` to prompt inclusion of Vite/React via django‑vite
- Introduce `use_vite` flag in `StructureOptions`, store it in metadata, and propagate to scaffolding templates
- Update CLI prompts and final project summary to display Vite/React confirmation
- Extend usage of the flag throughout app generation to honor the selected frontend stack
…pport

Summary: Introduced additional project structure templates and expanded Docker, frontend, and Tailwind integrations while fixing bugs.

New Features:
- Docker Support: Auto‑generates Dockerfile, docker-compose.yml, and .dockerignore
- Frontend Integration: Vite/React scaffold via django‑vite (frontend/, vite.config.js, package.json)
- Tailwind CSS: Integrated via django‑tailwind-cli
- HTMX: Integrated via django‑htmx

Enhancements:
- Added more project structure templates (Standard, Predefined, Unified, Single)
- Added interactive configuration wizard
- Improved structure detection
- Fixed bugs (all tests passing, verified issue‑free)
…fold and django‑vite integration

Add a minimal React frontend template (index.html, App.jsx, index.css, main.jsx) and configure static asset handling.
Update Docker Compose to populate DATABASE_URL according to the selected database type.
Include django‑vite in the template requirements and settings.

- New Features
  - Scaffold `frontend` directory with React components and Vite entry point.
  - Configure static URLs, root, and alias via `STATIC_URL`, `STATIC_ROOT`, and `DJANGO_VITE_ASSET_SRC`.
- Enhancements
  - Dynamically set `DATABASE_URL` in `docker-compose.yml` for PostgreSQL or MySQL.
  - Add `django-vite` to `THIRD_PARTY_APPS` and `requirements-tpl`.
- Bug Fixes
  - None.
The CLI now scaffolds a Vite‑powered frontend when the `use_vite` flag is enabled, providing React entry files, configuration, and basic styling.

- New Features  - Create `vite.config.js`, `package.json`, and core React source files (`main.jsx`, `App.jsx`, `index.jsx`, `index.css`).
  - Add helper methods `_create_vite_files` and `create_vite_files` integrated into project setup.
  - Generate frontend directories and `__init__.py` placeholders automatically.
- Enhancements
  - Propagate `use_vite` context to templates for `requirements.txt`, CI/CD pipelines, and Docker files.
  - Emit success message after Vite files are created.
  - Include Vite‑related checks in setup step list.
- Bug Fixes
  - None reported.
…ull testing setup

- New Features
  - Add Vite + React frontend integration (updates TODO checklist)
  - Introduce Vue.js as an optional frontend template
  - Enable complete testing framework with pytest, pytest-django, and pytest-cov
- Enhancements
  - Expand project structure templates (Standard, Predefined, Unified, Single)
  - Add interactive configuration wizard
  - Strengthen structure detection and bug fixes
- Bug Fixes
  - Resolve incomplete testing dependencies to ensure full coverage integration
…tion and summary

- New Features:
  - Added comprehensive test runner that cleans up temporary directories, verifies generated files, and prints a pass/fail summary.
  - Introduced specific validation for pytest configuration, Vite integration, and Dockerfile dependencies based on selected metadata.
  - Implemented clear pass/fail reporting with overall success metrics.

- Enhancements:
  - Refactored bug_check.py to use explicit data structures and consistent double‑quote quoting for path construction.
  - Improved formatting and readability of metadata definitions and context preparation.
  - Fixed Windows‑specific path handling regression by switching to double‑quoted string interpolation.

- Bug Fixes:
  - Corrected path building to use double‑quoted strings, preventing potential path parsing issues on Windows.
Add a boolean `use_pytest` option that is populated from the project metadata and included in the generated Django assistant context. This allows projects to explicitly opt‑in to pytest integration when using djinitx.

- New Feature: Introduce `use_pytest` configuration key in the Django helper metadata dictionary.
- Enhancement: Expand context preparation to support additional project preferences.
…n templates- New Features

  - Added conftest.py template with Django test database, API client, and test user fixtures.
  - Added pytest.ini template configuring settings, test discovery, and custom markers.
  - Integrated pytest and coverage requirements into the project requirements template.

- Enhancements
  - None

- Bug Fixes
  - None
New Features:
- Generate pytest configuration files (pytest.ini, conftest.py) when `use_pytest` is enabled.
- Introduce UI prompt to optionally include pytest.

Enhancements:
- Update metadata and context dictionaries to propagate `use_pytest`.
- Register pytest file creation in the project setup pipeline.
- Reflect pytest inclusion in UI success messages.

Bug Fixes: None.
…ures

New Features
- Added extensive test file examples/test_all.py with full coverage of setup creator scenarios

Enhancements
- None

Bug Fixes
- None
…work

Add pytest testing framework and update checklist to include Vue.

New Features
- Add pytest, pytest-django, pytest-cov as testing framework
- Include Vue in Frontend Integration description

Enhancements
- Update checklist entry to reflect Vue inclusion

Bug Fixes
- None
Add Vue integration via Vite and update UI prompts and metadata- New Features
  - Introduce `use_vue` flag and corresponding UI confirmation
  - Expose `get_vue_choice()` method and propagate selection through metadata
  - Add console output for Vue confirmation in final summary

- Enhancements
  - Update step ordering and comments to reflect Vue/Vite handling
  - Adjust data flow in code to include Vue option consistently

- Bug Fixes
  - None
Add Vue.js frontend scaffolding to djinit, generating necessary Vue/Vite templates and updating conditionals for use_vue support.

- New Features
  - Add Vue.js template files: index-vue.html-tpl, App.vue-tpl, main.js-tpl, style.css-tpl.
  - Generate package-vue.json-tpl with Vite + Vue dependencies.
  - Create vite-vue.config.js-tpl for Vite configuration.
- Enhancements
  - Update base.py-tpl to conditionally load django-vite when use_vite | use_vue.
  - Add django-vite dependency in requirements-tpl under use_vue.
- Bug Fixes  - None.
- Added `use_vue` flag to enable Vue generation and introduced `create_vue_files()` method that scaffolds Vite/Vue frontend files (vite.config.js, package.json, index.html, App.vue, style.css, main.js).
- Extended context dictionaries in `FileCreator`, utility classes, and Django helper to include `use_vue`.

Enhancements
- Integrated Vue file creation into the setup pipeline via `_create_vue_files()` with success messaging.
- Propagated `use_vue` configuration through serialization and UI feedback.

Bug Fixes
- (none)
New Features
- Added extensive test configurations for Docker, React, Vue, Tailwind, pytest, and various combinations.
- Introduced new scenarios such as docker_react, docker_vue, docker_react_htmx, all_postgres, all_mysql, and unified structures.

Enhancements
- Added missing comma in metadata dictionary for valid syntax.
- Enhanced exception handling to print traceback on errors.
- Updated path formatting to use consistent double‑quoted strings.
- Improved cleanup of test directories and imports.

Bug Fixes
- Fixed syntax error in metadata dict that caused runtime failure.
- Corrected path construction to use forward slashes for cross‑platform compatibility.
…te marks the Celery integration as completed and adds Django‑Q2 as an optional async task queue with Redis broker. The checklist now reflects the current state of optional async task queue integrations.

- New Features
  - Added Django‑Q2 optional async task queue (default disabled)
- Enhancements
  - Completed Celery integration tasks
- Bug Fixes
  - None
…ictionary

Add configurable flags for enabling Django Q and Celery in generated projects.

New Features:
- Introduce `use_django_q` and `use_celery` entries in the metadata dictionary, defaulting to False when unspecified.
- Allow downstream code to conditionally activate these features based on user configuration.

Enhancements:
- Extend the metadata schema to support additional Django ecosystem integrations.
…ations and configurationAdd django_q and celery to project settings when feature flags are enabled, and provide default configuration values for both. Extend requirements template with corresponding dependencies.
…affolding

- New Features
  - Introduce `use_django_q` and `use_celery` boolean flags in the project metadata
  - Add UI prompts to confirm inclusion of Django‑Q2 and Celery when generating a project
  - Expose these flags to all file templates and context processing
- Enhancements
  - Update context dictionaries and file generation to respect the new flags  - Extend required files handling for unified and single project structures
  - Display Django‑Q2 and Celery choices in the final project summary output
Update the configuration wizard to expose a broader set of optional integrations, reflect the latest project scaffolding capabilities, and clarify deployment components.

Details:
- New Features:
  - Docker support (Dockerfile, docker-compose.yml)
  - Frontend integration via Vite + React or Vue (django‑vite)
  - Optional testing stack (pytest, pytest‑django, pytest‑cov)
  - Optional async task handlers (django‑q2, Celery with Redis)
  - Additional database driver (psycopg for PostgreSQL/MySQL)
  - Modern admin UI (django‑jazzmin)
- Enhancements:
  - Expanded list of optional CLI options (HTMX, Tailwind, etc.)
  - Updated roadmap and TODO references
  - Improved clarity of PostgreSQL/MySQL support statement- Bug Fixes: none
…ffoldingNew Features

- Modern project structure with environment‑specific settings
- Pre‑configured REST API with JWT authentication
- Split settings for development and production
- API documentation via Swagger UI- CORS configured for local development
- WhiteNoise for static files
- Modern admin interface (django‑jazzmin)
- Docker support (Dockerfile, docker‑compose.yml)
- Frontend integration with Vite + React/Vue via django‑vite
- Testing framework (pytest, pytest‑django, pytest‑cov)
- Async task queues: Django‑Q2 and Celery with Redis
- Production‑ready configuration (Procfile, runtime.txt)
- Development tools via Justfile
- Environment template (.env.sample) and Git‑ready .gitignore

Enhancements
- Refactored layout with separate config modules (base, development, production)
- Organized API endpoints by model under `api/` directory
- Updated README with detailed setup instructions and command shortcuts
- Added Justfile with common development commands

Bug Fixes
- (none)
@S4NKALP S4NKALP changed the title feat(src/djinit/creators): add conditional Docker file generation to … new updates May 10, 2026
S4NKALP added 2 commits May 11, 2026 01:05
…andling in frontend templates

Bug Fixes
- Remove erroneous '\ No newline at end of file' markers from template files
- Ensure each template ends with a proper newline
…nings

- Bug Fixes:
  - Silence flake8 E402 import-order warnings in example scripts
S4NKALP added 3 commits May 11, 2026 01:06
… newline formatting in templates

- Remove stray backslashes and extra whitespace in Dockerfile, conftest, docker-compose, dockerignore, and Vue package templates
- Ensure consistent line endings and proper formatting across all generated template files
…frontend template

The templates now reference a React entry script; switching from .js to .jsx ensures the compiled asset is correctly loaded and improves template fidelity, preventing missing script errors.

Enhancements
- Updated index.html‑tpl to reference `/src/main.jsx` instead of `/src/main.js`
- Normalized line endings for both index‑vue.html‑tpl and index.html‑tpl
…ator

- New Features: Introduced safe `_eval_expr` for boolean expressions.
- Enhancements: Refactored conditional and loop parsing logic.
- Bug Fixes: Fixed variable lookup defaults and loop body capture.
@S4NKALP S4NKALP closed this May 13, 2026
@S4NKALP S4NKALP deleted the dev branch May 20, 2026 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant