Install on a new Sylius project¶
Netgen provides an uptodate installation of Sylius with Netgen Layouts pre-installed. The installation is based on Sylius Standard Edition, ready to be used as a base for your new project.
This installation can later be used to upgrade to future versions of Sylius by following official upgrade instructions.
Create a database¶
Create a database for your project with:
CREATE DATABASE sylius_dev CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_520_ci;
Install Composer and execute the following from a directory of your choice:
$ composer create-project netgen/layouts-sylius-site my_project $ cd my_project
.env.local file in the project root directory to specify database
Finally, run the Sylius install wizard:
$ php bin/console sylius:install $ yarn install $ yarn run gulp
Import Netgen Layouts database tables¶
Run the following command from the project root to import Netgen Layouts database tables:
$ php bin/console doctrine:migrations:migrate --configuration=vendor/netgen/layouts-core/migrations/doctrine.yml
Start the app¶
You can use the built-in Symfony web server to serve the app:
$ php bin/console server:start
After that, open
http://127.0.0.1:8000 in your browser to run the app.