Sylius is an open-source e-commerce platform built on top of Symfony that offers advanced features and flexibility to online merchants. In this tutorial, we will guide you on how to install Sylius on your Windows 10 computer.
Before installing Sylius, make sure that you have the following installed on your Windows machine:
The first step is to download Sylius from their official website https://sylius.com/download/.
Once downloaded, extract the Sylius archive to a directory of your choice.
Next, navigate to the directory where you extracted the Sylius archive, and run the following command to install the dependencies:
composer install
Next, copy the .env
file from the root of the Sylius directory and rename it to .env.local
. Open the file with a text editor and update the DATABASE_URL
parameter to match your database configuration.
Run the following command to create the database schema:
php bin/console doctrine:database:create
php bin/console doctrine:schema:create
If you want to enable HTTPS, you need to generate SSL keys. Run the following command to generate SSL keys:
openssl genpkey -out config/jwt/private.pem -aes256 -algorithm rsa -passout pass:{your_secret_passphrase}
openssl pkey -in config/jwt/private.pem -out config/jwt/public.pem -pubout -passin pass:{your_secret_passphrase}
Run the following commands to install frontend dependencies:
yarn install
yarn build
Finally, to start the server, run the following command:
php bin/console server:start
You can then access Sylius by navigating to http://localhost:8000
in your web browser.
Congratulations! You have successfully installed Sylius on your Windows 10 machine.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!