Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 1.57 KB

Readme.md

File metadata and controls

46 lines (36 loc) · 1.57 KB

Run the following commands in your terminal to setup the project

You must have the LAMP installed on your system

  1. git clone https://github.com/DIvyesh0204/Shopping-market.git

  2. cd Shopping-Market

  3. bash run.sh

    This will install composer,
    then open your virtual host config file
    where you need to copy paste the following code
    and type in the path to your cloned repository's public directory :

    <VirtualHost *:80>
        ServerName market.local
        #Enter Path Here
        DocumentRoot /path____________________      
        #Enter Path Here
        <Directory /path____________________ >     
            Options -Indexes -MultiViews
            Allowoverride all
            Require all granted
            <IfModule mod_rewrite.c>
                RewriteEngine On
    
                # Redirect Trailing Slashes If Not A Folder...
                RewriteCond %{REQUEST_FILENAME} !-d
                RewriteRule ^(.*)/$ /$1 [L,R=301]
    
                # Handle Front Controller...
                RewriteCond %{REQUEST_FILENAME} !-d
                RewriteCond %{REQUEST_FILENAME} !-f
                RewriteRule ^ index.php [L]
            </IfModule>
    
    
        </Directory>
        ErrorLog ${APACHE_LOG_DIR}/market.error.log
        LogLevel warn
        CustomLog ${APACHE_LOG_DIR}/market.access.log combined
    </VirtualHost>
    

    Save and Close this file

Your setup is now complete
Run "market.local/" on your browser to view the project.