Last active
April 14, 2022 15:54
-
-
Save kevyworks/1260e58fc94c8194c24d8468fb079da6 to your computer and use it in GitHub Desktop.
Prepare Dev Machine for: Node Composer & Laravel Valet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MOJAVE: https://gist.github.com/kevmt/476716bfb0383d3fda699e4fcacc6470 | |
# install brew | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# Terminal Aliases | |
echo "alias artisan='php $PWD/artisan'" >> ~/.bash_profile | |
echo "export NVM_DIR=~/.nvm" >> ~/.bash_profile | |
echo "source $(brew --prefix nvm)/nvm.sh" >> ~/.bash_profile | |
# update brew | |
brew update | |
# should be added by homebrew installation? | |
sudo chown -R `whoami`:admin /usr/local/opt | |
# Node Version Manager | |
brew install nvm | |
mkdir ~/.nvm | |
source ~/.bash_profile | |
nvm install --lts | |
# Global NPM libraries | |
# https://github.com/localtunnel/localtunnel | |
# https://gist.github.com/kevmt/f897580e05aca323f30692076c46cb27 | |
npm install -g localtunnel | |
npm install -g vue-cli | |
npm install -g quasar-cli | |
npm install -g vuepress | |
# Mysql | |
brew install mysql | |
# Redis | |
# /usr/local/etc/redis.conf | |
brew install redis | |
# Git | |
brew install git | |
# Insomnia | |
brew cask install insomnia | |
# Composer, PHP | |
brew install composer | |
brew install php71 | |
brew install php-code-sniffer | |
echo 'export PATH="/usr/local/opt/php@7.1/bin:~/.composer/vendor/bin:$PATH"' >> ~/.bash_profile | |
source ~/.bash_profile | |
brew link php@7.1 --overwrite --force | |
# WGET | |
brew install wget | |
# Php Mess Detector | |
wget -c http://static.phpmd.org/php/latest/phpmd.phar -P /usr/local/bin/ | |
# Valet | |
composer global require laravel/valet | |
# as of 04-05-2018 fix it directly | |
# nano ~/.composer/vendor/laravel/valet/cli/Valet/Brew.php | |
# @line 185, replace to: | |
# return strpos(preg_replace('/([@|\.])/', '', $resolvedPath), "/$version/") !== false; | |
brew services restart --all | |
# or restart your computer. | |
# Note that valet installs nginx & dnsmasq as root so you need | |
# sudo brew services restart --all | |
# Install Valet | |
valet install | |
# Install Tools | |
brew install visual-studio-code | |
brew install caskroom/cask/google-chrome | |
# Install HAXE | |
brew install haxe | |
haxelib setup /usr/local/Cellar/haxe/lib | |
# Android? | |
# brew install caskroom/cask/android-platform-tools | |
# brew install caskroom/cask/android-studio | |
# More... ? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment