Magento2 – Setup Magento Project After Cloning Git Repository

-setupgithubmagento2

I want to set up a git project on my local machine.

I have successfully set up the database.

I have run git clone command and clone the project from git but some repository is blank.

so how can I set up a project in the localhost?

If anyone has a solution then provide

Any help would be appreciated.

Thanks in advance..!

Best Answer

First of all, you need to check the vendor folder. If it is empty then you need to run the below commands to install core modules of Magento and deploy the project.

composer update
php bin/magento s:up
php bin/magento s:d:c
php bin/magento s:s:d
php bin/magento c:f

Check the composer.json file first before running the composer update command.

Edit:

Please check the app/etc folder it should contain config.php and env.php. In env.php, the database configuration (your local setup) is set.

I hope it helps!!!

Related Topic