Getting Started
Prerequisites :
For installation and setup all prerequisites, please follow the below steps:
Xampp |
Make sure to have the Xampp installed & running in your computer. PHP Version 8.1 or Higher must be required for Laravel 11. |
Composer |
Make sure to have the Composer installed & running in your computer. make sure the composer version must be 2.2.0 or Higher. |
Nodejs |
Make sure to have Node.js installed & running on your computer. If you already have installed Node on your computer, you can skip this step if your existing node version is greater than 18. We suggest you to use LTS version of Node.js. |
Git |
Make sure to have Git installed globally & running on your computer. If you already have installed git on your computer, you can skip this step. |
After finishing with the above prerequisites steps, you can run the below commands into the terminal/command prompt from the root directory of the project to run the project locally or build for production use:
Command | Description |
---|---|
yarn install
|
This would install all the required dependencies in the
node_modules folder.
|
composer install
|
command to install all of the framework's dependencies. |
Please run the below command to generate the new key.
Please fill your DB credentials in the .env file.
DB_CONNECTION=mysql
DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=velzon_inertia_react DB_USERNAME=root DB_PASSWORD= Email credentials are mendatory. if you don't have credentials Get Free. Please fill your email credentials in the .env file.
MAIL_MAILER=
MAIL_HOST= MAIL_PORT= MAIL_USERNAME= MAIL_PASSWORD= MAIL_ENCRYPTION= MAIL_FROM_ADDRESS="support@velzon.com" MAIL_FROM_NAME="${APP_NAME}" |
|
yarn build
|
To compile all scss to css and copy all files from resource to public directory. |
Please run the following commands to clear all cache from the project.
|
|
php artisan migrate
|
This will migrate the database tables. For more details visit https://laravel.com/docs/10.x/migrations |
php artisan db:seed
|
This will seed the database tables. For more details visit https://laravel.com/docs/10.x/seeding |
php artisan serve
|
The development server is accessible at http://localhost:8000.
To run on other port just run command : php artisan serve --port=8001 |