For Windows user:
The following command is linux-based which may not be properly executed under windows environment. It is recommended that Windows Subsystem for Linux (WSL) is installed and used for this exercise. Refer https://learn.microsoft.com/en-us/windows/wsl/install
[1] Get chirper docker project
Launch a terminal and run the following command:
[2] start project
After the project has been created, you can navigate to the application directory and start Laravel Sail:
When developing applications using Sail, you may execute Artisan, NPM, and Composer commands via the Sail CLI instead of invoking them directly:
[3] Installing Laravel Breeze
Open a new terminal in your chirper project directory and install your chosen stack with the given commands:
Breeze will install and configure your front-end dependencies for you, so we just need to start the Vite development server to automatically recompile our CSS and refresh the browser when we make changes to our Blade templates:
In case vite is injecting wrong url eg using ip address 0.0.0.0 , add the server hrm entries in the vite.config.js file as follows:
Reference
Laravel Bootcamp: https://bootcamp.laravel.com/blade/installation
Sail Service: https://laravel.com/docs/10.x/installation#choosing-your-sail-services
No comments:
Post a Comment