- Install Laravel
- Create a new project
- Migrate the database by running the command
php artisan migrate
- To create vite scaffolding, run the command
npm create vite
And select the following options:
Project name: your-project-name
Select a framework: react
Select a variant: react-js
- Go to the project directory and run the command
npm install
To see the frontend changes, run the command
npm run dev
To change the port of the frontend, go to the file package.json and
in the scripts section, change the port number in the command
"dev": "vite --port 3000"