Skip to content

Instantly share code, notes, and snippets.

@pierregaillard1986
Last active November 3, 2016 14:49
Show Gist options
  • Save pierregaillard1986/173dfb97dc821cc0eed51f4de4baf776 to your computer and use it in GitHub Desktop.
Save pierregaillard1986/173dfb97dc821cc0eed51f4de4baf776 to your computer and use it in GitHub Desktop.
installation escapegame-laloupe Ubuntu&osX
#!/bin/bash
echo "Installation de escape game La Loupe"
read -r -p "Souhaitez-vous mettre à jour / installer nodejs, git & mongodb ? [y/n]" response
if [ "$response" == "y" ]; then
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
export PATH="/usr/local/bin:$PATH"
brew install node
brew install git
brew install mongodb
npm install -g nodemon bower n
fi
read -r -p "laloupe-0916-escapegame ? " FOLDER
if [ -z "$FOLDER" ]; then
echo "Exiting..."
else
git https://github.com/WildCodeSchool/laloupe-0916-escapegame.git
mv laloupe-0916-escapegame $FOLDER
cd $FOLDER
rm -rf .git
git init
git add --all
git commit -m "Git init"
npm install
bower install
echo "Terminé ! Vous trouverez votre site escape game la loupe dans $FOLDER"
fi
exit 0
#!/bin/bash
echo "Installation du site laloupe-0916-escapegame
read -r -p "Souhaitez-vous mettre à jour / installer nodejs, git & mongodb ? [y/n]" response
if [ "$response" == "y" ]; then
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
curl -sL https://deb.nodesource.com/setup_6.x | sudo bash -
sudo apt-get install nodejs git mongodb-org -y
sudo npm install -g nodemon bower n
sudo n latest
fi
read -r -p "laloupe-0916-escapegame" FOLDER
if [ -z "$FOLDER" ]; then
echo "Exiting..."
else
git clone https://github.com/WildCodeSchool/laloupe-0916-escapegame.git
mv laloupe-0916-escapegame $FOLDER
cd $FOLDER
rm -rf .git
git init
git add --all
git commit -m "Git init"
npm install
bower install
echo "Terminé ! Vous trouverez votre site escape game dans $FOLDER"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment