Installation
This page has all the information you will need to set up your project. Here, you will get to know what the things are that you will need to install before you start working on your project. Make sure you don't miss a single step.
To proceed with installation First, make sure you meet all technical requirements.
For Windows
Step 1: Install Composer
To install Composer on your machine, follow the link https://getcomposer.org/, and Once it is downloaded execute the
bellow command to make sure that composer installed in your system.
go to Download -> Composer-Setup.exe ,click this link to download.
composer --version
Step 2: Install Scoop
Open the PowerShell and run this below command to install scoop on your system.
irm get.scoop.sh | iex
Step 3: Install Symfony CLI
scoop install symfony-cli
symfony --version
For Linux
Step 1: Updating System
Update your system by executing the below given command in your terminal.
sudo apt-get update
Step 2: Install composer
Although you already have composer installed in your system, as it is included while installing any linux based os, but if it is not included run the following command to install composer.
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
You need to add the composer.phar file to a PATH directory through this command:
sudo mv composer.phar /usr/local/bin/composer
Check the version of composer thorugh this command:
composer -v
Step 3: Install Symfony CLI
In terminal or command prompt and run all this below commands. to insatall Symfony CLI.
curl -1sLf 'https://dl.cloudsmith.io/public/symfony/stable/setup.deb.sh' | sudo -E bash
sudo apt update
sudo apt install symfony-cli
Check the symfony thorugh this command:
symfony -v
Setting Up Cuba
Now that you have installed composer in your system its time to setup the cuba theme and start creating you wonderful website.
Step 1: Check PHP Version
Make Sure that PHP is installed in your system by running this command, latest
php v8.0 is needed
php --version
make sure to install it, if is not installed.
Step 2: Check composer Version
Make Sure that composer is installed in your system by running this command
composer --version
If not installed, please make sure to install it first.
Step 3: Install dependencies
composer update
Step 3: run the project
Now that all the dependencies are installed we are ready to run our project in the development server. Run the following command in the terminal:
You should go first, cd your-Cuba-theme-path, then
symfony server:start
open the link http://127.0.0.1:8000/dashboard in your browser to view the project.