The problem I have is that I upload a repository to github and it uploads normally. but when i download the project and run it i get this error
It should be noted that before running this project I execute the commands of
composer install
npm install
since the vendor and node_modules folder is not uploaded
this is what comes out in the log
When you clone a repository locally with a Laravel application from Github , Bitbucket or similar, there are a number of common steps that need to be performed .
Initially you do not have (or you should not have) a file,
.env
you will need one to store theAPP_KEY
, database access data, etc.If you are on a Linux machine you also need to assign some permissions to certain directories and maybe to all files if the application is developed on Windows, for example. In that case I recommend you review the content of the link I have put.
Roughly , the steps would be:
1.Install the dependencies
2.Create the file
.env
:and configure the access data to the database.
3.Generate the app key:
4.Create the DB. Using the console or the program you use to manage them (phpMyAdmin, MysqlWorkbench, etc).
5.Run migrations:
6.Seed the tables (possibly, if you have default data such as a list of regions, countries, etc).
NOTE: the steps described are generic, you may need to create directories or add other files to start the application. If you followed the steps and it doesn't work, check
.gitignore
to see what might be missing.