Created
February 1, 2023 04:47
-
-
Save iKunalmathur/5dcafa1992f7f44f35223e6256d3880a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## How to setup | |
Clone repo the repo | |
``` | |
git clone -b <BRANCH_NAME> <REPO_URL> <FOLDER_NAME> | |
``` | |
Install required packages | |
``` | |
composer install --no-scripts | |
``` | |
``` | |
composer install --optimize-autoloader | |
``` | |
If required\* | |
``` | |
npm install | |
``` | |
Change dir permission | |
``` | |
sudo chmod 777 -R bootstrap | |
``` | |
``` | |
sudo chmod 777 -R storage | |
``` | |
Create .env | |
``` | |
mv .env.example .env | |
``` | |
Generate key | |
``` | |
php artisan key:generate | |
``` | |
Link storage | |
``` | |
php artisan storage:link | |
``` | |
Clear cache and optimize | |
``` | |
php artisan optimize:clear | |
``` | |
``` | |
php artisan optimize | |
``` | |
## How to run (local) | |
``` | |
php artisan server --port=8000 | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment