Skip to content

it's shell scripts that will prepare environment for you ( open project on IDE Vscode , open server Lampp, and then execute npm run watch)

Notifications You must be signed in to change notification settings

OmdaMukhtar/linux-bash-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#!/bin/bash

read -p "Pleace enter password (SuperAdmin) : " pass

if ["$pass" -z ]
then 
	echo "you must enter password !";
	cd ;
	exit 1;
else	

	cd # out from current path to root

	cd Desktop/path_of_your_project/ # enter to path of my project

	code .  # open my project in vscode

	gnome-terminal	--tab --title="server" --command="bash -c 'cd /opt/lampp;echo $pass|sudo -S ./lampp start; $SHELL'" --tab --title="npm" --command="bash -c 'cd; cd Desktop/path_of_your_project/;npm run watch; $SHELL'"
	--tab --title="google-chrome" --command="bash -c 'google-chrome http://localhost:8000; $SHELL'"

	php artisan serve # run server

fi

Preview

php artisan serve

alt text

./lampp start

alt text

npm run watch

alt text

google-chrome http://localhost:8000

alt text

Linux_Bash_Helper

Its shell scripts that will do or implement for you environment like open your project pass and open it on vscode and open server and then execute npm

So the bash script will do :

  1. Open path of your project
  2. After your path open run vscod
  3. Open another with new tap and run xampp server
  4. Open your project in another tap and run your npm run watch
  5. Open your project on google-chrome with url :http://localhost:8000

How to Use

- git clone https://github.com/OmdaMukhtar/LinuxBashHelper.git

  • put file bash02.sh at any dir in your computer
  • use terminal and change path to path where your bash02.sh exists
  • in Linux run chmod +x bash02.sh command to make bash02.sh executable
  • run bash bash02.sh
  • then will ask you to enter your password, entered
  • if you need more explain follow this link

Then have fun (:

About

it's shell scripts that will prepare environment for you ( open project on IDE Vscode , open server Lampp, and then execute npm run watch)

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages