idmarinas / lotgd-skeleton
A new version of The Legend of the Green Dragon, upgrade scripts and optimization, migrating to a Symfony Application
Fund package maintenance!
Paypal
Requires
- php: ^7.4 | ^8.0
- ext-bcmath: *
- ext-ctype: *
- ext-curl: *
- ext-exif: *
- ext-gd: *
- ext-iconv: *
- ext-intl: *
- ext-json: *
- ext-mbstring: *
- ext-pdo: *
- ext-pdo_mysql: *
- ext-session: *
- idmarinas/lotgd: 7.1.*
- symfony/flex: ^1.18
Requires (Dev)
- idmarinas/maker-bundle: ^1.0
- idmarinas/tracy-twig-bar: ^0.3
- macfja/tracy-doctrine-sql: dev-master
- milo/vendor-versions: ^1.1
- phan/phan: ^3.2
- phpunit/phpunit: ^9.5
- rector/rector: ^0.13
- symfony/browser-kit: ^4.4
- symfony/css-selector: ^4.4
- symfony/debug-bundle: ^4.4
- symfony/maker-bundle: ^1.0
- symfony/phpunit-bridge: ^5.4
- symfony/stopwatch: ^4.4
- symfony/var-dumper: ^4.4
- symfony/web-profiler-bundle: ^4.4
Conflicts
README
About
This is the template for the IDMarinas Edition core. It contains what you need to create your customization and tools to build it. This skeleton does not include the core files, they are not necessary for the creation of your customization.
IDMarinas Edition
Skeleton version for IDMarinas Edition: 7.1.*
First steps
-
You need have installed
npm
,composer
andgulp
as global commands.Gulp globally, run command
npm install gulp-cli -g
Composer globally see https://getcomposer.org/download/
Create project
Method 1
- Run command
composer create-project idmarinas/lotgd-skeleton MyCustomLoTGD
to create a skeleton of LoTGD CoreIt will create a MyCustomLoTGD directory with a new LoTGD Core application inside.
- Run command
npm install
for install all nodes packages.- Note: When Fomantic Ui asks you to install, select "Skip install" and then accept everything.
- Not is necesary install in proyect folder.
Method 2
- Clone repository in your directory.
- Run command
composer install
for install all composer packages. - Run command
composer lotgd:skeleton:project:create
- This copy files to
_core_files/
folder for you. - Olso copy files needed for commands in your
MyCustomLoTGD
directory.
- This copy files to
- Run command
php bin/console lotgd:regenerate:app_secret
this regenerate APP_SECRET of.env
file.- Only need run one time.
- Run command
php bin/console lotgd:regenerate:app_secret --iv
this regenerate APP_SECRET_IV of.env
file.- Only need run one time.
- Run command
npm install
for install all nodes packages.- Note: When Fomantic Ui asks you to install, select "Skip install" and then accept everything.
- Not is necesary install in proyect dir.
Upgrade project from previous version (New in version 5.2.* of Skeleton)
- Before make any change, commit all changes in your project.
- With this can see all new changes can modify as you need.
For project of version 5.1.* and lower.
- Need download repository and copy files to your project directory.
- Revise all changes and make changes as you need.
- Run command
composer lotgd:skeleton:project:upgrade
and wait.
For project of version 5.2.* and higher.
- In your composer.json search the following packages:
"idmarinas/lotgd"
and"idmarinas/lotgd-skeleton"
Upgrade the version of these packages to the desired version, e.g.5.2.*
- Both packages must have the same major version and the same minor version, the patch version must always be an asterisk.
- Note:
X.Y.Z
:X
is a major version,Y
is a minor version,Z
is a patch version. - Note: with
*
in patch version this download los patches of packages this is only a fixed errors, not break your installation.
- Note:
- Run command
composer update
- Wait to finish.
- Run command
composer lotgd:skeleton:project:upgrade
and wait.
Prepare your custom LoTGD
- Configure .env file with your data.
- Can create multiple files for separate config for enviroment:
.env.prod
contain data for production environment..env.dev
contain data for development environment..env.test
contain data for test environment.
- Can read comments in
.env
for know how work.env
files.
- Can create multiple files for separate config for enviroment:
- Run command
php bin/console lotgd:regenerate:app_secret
this regenerate APP_SECRET of.env
file.- ⚠️ Only need first time install LoTGD. If you already have a project in production, changing it again may break your installation.
- Run command
php bin/console lotgd:regenerate:app_secret -iv
this regenerate APP_SECRET_IV of.env
file.- ⚠️ Only need first time install LoTGD. If you already have a project in production, changing it again will cause all previously encrypted data to become unencryptable.
- Now only need prepare all your customizations and modules
Prepare for deployment
- Run command
npm run lotgd-dev
for build a version for development server, located indist/dev/
- Run command
npm run lotgd-prod
for build a version for production server, located indist/prod/
Tips
- Composer and Package
- You can add new dependencies as your project needs them, but do NOT remove any of the default ones.
- Note: Please do not change the versions of the dependencies.
Other
Read Wiki for more information.