Create the database following these steps:
start xampp
start apache and mysql in xampp
go http://localhost/phpmyadmin
click databases tab
create a database called irrigation
create a new .env file:
change directory to frontend folder in terminal
copy example env file using command "cp .env.example .env"
Put the database details in the .env file:
DB_DATABASE=irrigation
DB_USERNAME=root
DB_PASSWORD=
change folder to backend in terminal then run these commands
composer install
php artisan key:generate
php artisan migrate
php artisan jwt:secret
php artisan serve
change folder to frontend in another terminal then run these commands
npm install -g @angular/cli
npm install
ng serve --open