drago-ex / project-preset
Overlay preset that turns an installed Drago Project into a backend-ready stack.
Package info
github.com/drago-ex/project-preset
Language:JavaScript
Type:drago-tools-resource
pkg:composer/drago-ex/project-preset
Requires
- php: >=8.3 <9
- drago-ex/project-backend: ^1.0
- drago-ex/project-backend-ui: ^1.0
- drago-ex/project-blog: ^2.0
- drago-ex/project-docker: ^1.0
- drago-ex/project-docker-db: ^1.1
- drago-ex/project-front: ^3.0
- drago-ex/project-front-ui: ^1.0
- drago-ex/project-gallery: ^1.0
- drago-ex/project-permission: ^3.0
- drago-ex/project-settings: ^2.0
- drago-ex/project-static-page: ^2.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Installs the complete website with administration into a Drago Project at once and brings the administration assets composed for all its packages.
Requirements
- PHP >= 8.3, < 9
- Drago Project
Installation
composer require drago-ex/project-preset
Project Tools copies the files of the package into the project, where you adapt them.
Included Packages
- Docker Database
- Front UI
- Backend
- Drago UI
- User
- Authentication
- Account
- Settings
- Permissions
- Blog
- Static Pages
- Gallery
They bring their own dependencies.
Settings
BasePresenter and BaseTemplate of Front UI are replaced once with ones that load the settings (SettingsRequire
of Settings) into every template: the brand of every layout shows
the name of the website, the website its description.
User menu
The user menu in the navbar of the administration (Backend/@navbar-user.latte of Drago UI) is replaced once with
one for the signed-in user: the name of the account, the roles (custom roles of
Permission by their title), a link to the account, the theme switch
and the sign out.
Permissions
Drago UI leaves its menu editor open to everyone, so a bare project without users can be clicked through. The
preset replaces its Backend/Menu/acl.neon once with one for administrators only; another role gets the menu
editor on the permissions page.
Assets
The preset copies assets/admin.js and assets/admin.scss into the project, replacing the ones of the other
packages once. They already register the scripts and import the styles of all included packages, so the
administration works after npm install and npm run vite:build without further changes.