Skip to content

csabika98/ReactViteLaravel

Repository files navigation

React + Vite + PHP 8 + Laravel

TO INSTALL IT ON MAC

make -f installMacOS.mk

TO INSTALL IT ON LINUX (DEBIAN, APT-GET)

sudo make -f installLinuxDebian.mk

TO INSTALL IT ON Windows (needs administrator previliges)

powershell -ExecutionPolicy ByPass -File .\install.ps1

Screenshots

PROXY SERVER INCLUDED

http://localhost:8888 -> VITE + REACT
http://localhost:8888/api -> PHP 8.3 + Laravel BACKEND

UPDATE 2024.06.27

  • Installation is now supports debian based Linux(Ubuntu, Debian..)!
  • Install Make - If you don't have it
1. sudo apt-get install make
2. sudo make -f installLinuxDebian.mk
  • After you done with the installation script close Powershell and open it again.

  • Install vendor packages

composer install
  • Rename .env.template to .env and run the following
php artisan key:generate
  • cd to /Startup Folder and Install NodeJS dependencies
npm install

Installation

Installation script works only on Windows

  • Use the installation script, install.ps1 (you will need to run as administrator) (it will install PHP + Composer + Configure php.ini)
powershell -ExecutionPolicy ByPass -File .\install.ps1
  • After you done with the installation script close Powershell and open it again.

  • Install vendor packages

composer install
  • Rename .env.template to .env and run the following
php artisan key:generate
  • cd to /Startup Folder and Install NodeJS dependencies
npm install

RUN

To run the app CD to /Startup Folder

  • It will run React + Vite
  • Laravel also going to be run alongside React + Vite
npm run dev

Development

  • Frontend development (React) in the startup/src directory
  • Backend development (Laravel) in the root directory

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published