drago-ex/project

There is no license information available for the latest version (v2.0.3) of this package.

The basis for new projects on Drago Extension.

Maintainers

Package info

github.com/drago-ex/project

Language:JavaScript

Type:project

pkg:composer/drago-ex/project

Statistics

Installs: 85

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

v2.0.3 2026-06-03 18:14 UTC

README

Basis for new modules projects on Drago Extension

License: MIT PHP version Coding Style

Requirements

  • PHP >= 8.3
  • Nette Framework
  • Composer
  • Docker
  • Node.js
  • Bootstrap
  • Naja

Installation

composer create-project drago-ex/project

Basic information

Basic package for applications where the basis for Bootstrap, Vite, Docker, Naja is already prepared. You can find all commands in package.json like running Docker or Vite.

Basic Naja scripts

  • ErrorsHandler - Handles Naja AJAX errors by displaying user-friendly alert messages based on HTTP status codes. Shows a dismissible Bootstrap alert in the page element with ID snippet--message.

  • HyperlinkDisable - Temporarily disables links with the data-link-disable attribute during Naja requests to prevent multiple clicks. Re-enables the links once the request is complete.

  • Spinner - Displays a full-page spinner during active Naja AJAX requests. Shows the spinner when a request starts and hides it once all requests are complete.

Available Extensions

Expand the base package with these ready-to-use modules:

Each extension documents its required project configuration and post-installation steps in its own README. When installing the complete project stack, you can use Project Preset to apply the required setup automatically.

Package Setup

Project setup commands are handled by Project Tools. After installing extensions, run vendor/bin/drago-setup to execute package-defined setup tasks such as database migrations or generated permission classes.

Inside Docker, run it as the web user:

docker compose exec -u www-data server php vendor/bin/drago-setup

Command definitions and priorities are documented in the packages that provide them.

Useful Development Tools