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.
For Windows
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
composer --version
And we are done with setting up composer in our system, now you can code all you want.
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 through this command:
composer -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
php --version
make sure to install it first if it isn't installed.
Step 2: Check composer Version
Make Sure that composer is installed in your system by running this command
composer --version
If it is not installed then make sure that you install it first by above given steps.
Step 3: Install dependencies
composer install
Once you serve your application by default it will take their defalult port so you can open port using
localhost://8080
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:
php spark serve
open the link http://localhost:8080/ in your browser to view the project.