Skip to content
GitLeipuri edited this page Apr 27, 2015 · 1 revision

VAGRANT_API_VERSION = “2”

Vagrant.configure(VAGRANT_API_VERSION) do |config|
config.vm.box = “ubuntu/trusty64”

config.vm.provider “virtualbox” do |v|
v.cpus = 2
v.memory = 1024
end

config.vm.provision :shell, :path => “bootstrap.sh”

config.vm.network “forwarded_port”, guest: 8000, host: 8000
config.vm.network “forwarded_port”, guest: 80, host: 8080
config.vm.network “forwarded_port”, guest: 9001, host: 9001
config.vm.network “forwarded_port”, guest: 9002, host: 9002
config.vm.network “forwarded_port”, guest: 35729, host: 35729

config.vm.synced_folder “io”, “/home/vagrant/teamboard-io”
config.vm.synced_folder “api”, “/home/vagrant/teamboard-api”
config.vm.synced_folder “client-react”, “/home/vagrant/teamboard-client-react”
config.vm.synced_folder “IIZP2010G6”, “/var/www/html”
end




#!/bin/bash
#

  1. Used to ‘provision’ the vagrant machine. Basically is run after the machine
  2. is created so you don’t have to worry about installing everything yourself.

export LANG=“en_US.UTF-8”
export LC_ALL=“en_US.UTF-8”
export LANGUAGE=“en_US.UTF-8”

  1. NodeJS and other stuff required by the ‘api’ and ‘io’ to run properly,
  2. basically all sorts of MongoDBs, Redises etc…

curl -sL https://deb.nodesource.com/setup | sudo bash -

apt-get update
apt-get install -y git nodejs build-essential
apt-get install -y mongodb-server redis-server
apt-get install -y apache2
apt-get install -y php5 libapache2-mod-php5 php5-mcrypt
apt-get install -y php5-mongo
rm /var/www/html/index.html
service apache2 restart

  1. Build tools for development

gem install sass
npm install -g gulp bower

Clone this wiki locally