#!/bin/bash # THE PURPOSE OF THIS SCRIPT IS TO INSTALL A LARAVEL PROJECT WITH REACT LOGIN # Source: https://www.webune.com/forums/create-deploy-new-laravel-react-app-login-breeze-inertia-authentication.html # Id: 5153 # TO RUN SCRIPT: #rm -f laravel-with-login.sh #curl -o ./laravel-with-login.sh https://www.webune.com/forums/laravel-with-login.sh.html #chmod +x laravel-with-login.sh #./laravel-with-login.sh while [[ $APP_NAME == "" ]] do read -p "1. Enter the App name:" APP_NAME set -e done echo "Creating App $APP_NAME" laravel new $APP_NAME code $APP_NAME cd $APP_NAME code .env read -p "Add the MySQL Credentials in .env file, create database then Press any key to continue" CONT php artisan vendor:publish --provider="Spatie\MediaLibrary\MediaLibraryServiceProvider" --tag="migrations" php artisan migrate php artisan vendor:publish --provider="Spatie\MediaLibrary\MediaLibraryServiceProvider" --tag="config" composer require laravel/breeze --dev read -p "NOTE: Select React and select no on other options on the next prompts. Press any key to continue" CONT php artisan breeze:install php artisan migrate npm install read -p "NEXT STEPS: 1. 'npm run dev' 2. 'php artisan serve' 3. Open Browser to: 127.0.0.1:8000/register . Press any key to continue" CONT