Sylius Standard Edition

READ: https://sylius.com/download/
Make sure to use PHP 7.2
Download via composer and create a new app ‘sylius-app’

go to the app directory

Install!
NOTE: make sure the ‘timezone’ variable for PHP is already set! if not, You’d get this error ‘timezone | ERROR!’. Check the variable in /etc/php/7.2/cli/php.ini file. Set like this (for example): date.timezone = Asia/Jakarta
NOTE: Make sure to create a new file for override the default env. the new file is ‘.env.local’. (ref: https://docs.sylius.com/en/1.5/book/installation/installation.html)
I want this app stores file in ‘sylius_app’ database. So here is the file content

Change the parameters like username, password, etc to fit your system.
SORRY, ONLY ADMIN CAN SHOW THIS!
Then run the install command

My settings:
SORRY, ONLY ADMIN CAN SHOW THIS!

Install Assets

Then run gulp to build the frontend

Run the cli server

Open it on your browser: http://localhost:8000
Here is the screenshotsAdmin login: http://localhost:8000/admin/login

SORRY, ONLY ADMIN CAN SHOW THIS!
Here is the admin dashboardMODIFICATION
CREATE A NEW ROUTE AND CONTROLLER
READ: https://alanstorm.com/symfonys-service-container/
MODIFY THE ROUTE IN config/routes.yaml

THEN CREATE A CONTROLLER IN src/MyControllers/Advcha/HelloWorldController.php

 

Leave a Reply

Your email address will not be published. Required fields are marked *