This generator create a application with restful architecture with Zend 3 or Symfony framework
npm install generator-php-scaffoldIn creating the frontend was used Angular 7 together as the Material Design the link to the layout can be found here:
* https://www.creative-tim.com/product/material-dashboard-angular2
php-scaffold do?php-scaffold generator suggests creating a project or pointing to an existing project, after that you can create your Modules and their Entities, and all the necessary files for the application to work will be created as based on the data provided.
npm i -g yo
`
`
npm i -g generator-php-scaffold
`
Usage
To use the generator you must enter the folder where you want the application to be created.`
cd ~/Documents/my_workspace
`
To start the generator execution the following command must be executed.
`
yo php-scaffold
`After the construction of the application structure for the creation of entities simply access the folder defined for the project and rerun the call to the generator.
`
cd ~/Documents/my_workspace/my_project
`
`
yo php-scaffold
`To Run the application yo need to execute the line command following.
`
sudo docker-compose up -d
`
Runner the following line command to update the database`
sudo docker exec -it app bash
``
Symfony: php bin/console doctrine:schema:update --force
Expressive: php vendor/bin/doctrine orm:schema-tool:update --force
`>Obs. You need to execute composer install and npm install to install dependencies
>Obs. To import the jdl files you need first convert to JSON file
`
npm install -g generator-jhipster
`
`
jhipster import-jdl ./data/my-jdl-file.jdl --json-only
``