Skip to content

Instantly share code, notes, and snippets.

@eduardomp
Created December 22, 2017 14:14
Show Gist options
  • Save eduardomp/e3b27fa27811e7781d3ab8f870af5aba to your computer and use it in GitHub Desktop.
Save eduardomp/e3b27fa27811e7781d3ab8f870af5aba to your computer and use it in GitHub Desktop.
Vue + Flask API development environment
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.network "forwarded_port", guest: 8080, host: 8080
config.vm.synced_folder "workspace/", "/home/ubuntu/workspace"
config.vm.synced_folder "arquivos/", "/home/ubuntu/arquivos"
config.vm.provision "shell", inline: <<-SHELL
echo "atualizando repositorios..."
sudo apt-get update
echo "instalando g++..."
sudo apt-get install -y g++
echo "instalando GIT..."
sudo apt-get install -y git
echo "instalando CURL..."
sudo apt-get install -y curl
echo "instalando NodeJS..."
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
echo "atualizando npm..."
sudo npm install npm@latest -g
echo "instalando vue-cli..."
sudo npm install -g vue-cli
echo "instalando yeoman e flask-api generator..."
sudo npm install -g yo
sudo npm install -g generator-flask-api
echo "instalando python3.5"
sudo apt-get install -y python3.5
sudo apt-get install -y python-pip
sudo apt-get install build-essential libssl-dev libffi-dev python-dev
sudo apt-get install -y python3-venv
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment