Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Extrodox/0efbe8044bb070668a79878d323f794b to your computer and use it in GitHub Desktop.
Save Extrodox/0efbe8044bb070668a79878d323f794b to your computer and use it in GitHub Desktop.
Set up laravel 5.6 with angular 4 or angular 5 with php 7.2.x, mysql-server
#Install PHP
sudo apt-get -y update < "/dev/null";
sudo apt-get install -y python-software-properties < "/dev/null";
sudo yes | sudo add-apt-repository ppa:ondrej/php < "/dev/null";
sudo apt-get -y update < "/dev/null";
sudo apt-get install -y php7.2 < "/dev/null";
sudo apt-get install -y php-pear php7.2-curl php7.2-dev php7.2-gd php7.2-mbstring php7.2-zip php7.2-mysql php7.2-xml < "/dev/null";
#Install Mysql
sudo apt-get install -y mysql-server < "/dev/null";
#Install Composer
sudo apt-get install -y curl zip unzip < "/dev/null";
sudo curl -s https://getcomposer.org/installer | php ;
sudo mv composer.phar /usr/local/bin/composer < "/dev/null";
composer install < "/dev/null";
composer dump-autoload < "/dev/null";
#Install Node/NPM
sudo apt-get -y install gcc g++ make < "/dev/null";
sudo apt-get install -y npm < "/dev/null";
sudo npm install -g npm < "/dev/null";
sudo apt-get install -y nodejs-legacy < "/dev/null";
curl -sL https://deb.nodesource.com/setup_9.x | sudo -E bash -
sudo apt-get install -y nodejs < "/dev/null";
#Install Angular 4/5
sudo npm install -g @angular/cli < "/dev/null";
cd front;
sudo npm install;
sudo npm install --save-dev @angular/cli@latest < "/dev/null";
#Install python with ML
sudo apt-get install -y python-setuptools python-dev build-essential;
wget https://bootstrap.pypa.io/get-pip.py;
python get-pip.py;
rm get-pip.py;
sudo pip install --upgrade pip;
sudo pip install httplib2;
sudo pip install tensorflow;
sudo pip install numpy;
sudo pip install pandas;
sudo pip install --upgrade google-api-python-client;
sudo pip install simplejson;
sudo pip install flask;
sudo pip install scikit-learn;
sudo pip install h5py;
sudo pip install tables;
sudo pip install scipy;
sudo pip install python-geoip-geolite2;
#install python3
sudo apt-get install -y software-properties-common;
sudo add-apt-repository -y ppa:jonathonf/python-3.6 < "/dev/null";
sudo apt-get -y update < "/dev/null";
sudo apt-get install -y python3.6 < "/dev/null";
sudo apt-get install -y python3-pip < "/dev/null";
pip3 install --upgrade setuptools pip;
sudo python3 -m pip uninstall pip && sudo apt install python3-pip --reinstall;
pip3 install --upgrade virtualenv;
virtualenv venv;
pip3 install jupyterthemes;
source venv/bin/activate;
pip3 install -r requirement.txt;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment