How to Install Sylius on Windows 10
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.
Prerequisites
Before installing Sylius, make sure that you have the following installed on your Windows machine:
- PHP version 7.2 or later
- Composer
- Node.js
- Yarn or NPM
Step 1: Download Sylius
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.
Step 2: Install dependencies
Next, navigate to the directory where you extracted the Sylius archive, and run the following command to install the dependencies:
composer install
Step 3: Configure your .env file
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.
Step 4: Create the database schema
Run the following command to create the database schema:
php bin/console doctrine:database:create
php bin/console doctrine:schema:create
Step 5: Generate SSL keys
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}
Step 6: Install frontend dependencies
Run the following commands to install frontend dependencies:
yarn install
yarn build
Step 7: Start the server
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.