Example Application build with Laravel and React
The repo was created while I was working on the following YouTube tutorial
Make sure you have environment setup properly. You will need PHP8.1, composer and Node.js.
- Download the project (or clone using GIT)
- Copy .env.exampleinto.envand configure database credentials
- Navigate to the project's root directory using terminal
- Run composer install
- Set the encryption key by executing php artisan key:generate --ansi
- Run migrations php artisan migrate --seed
- Start local server by executing php artisan serve
- Open new terminal and navigate to the reactfolder
- Copy react/.env.exampleinto.envand adjust theVITE_API_BASE_URLparameter
- Run npm install
- Run npm run devto start vite server for React