Skip to content
Rei edited this page Jul 14, 2014 · 4 revisions

Get Source Code

~ $ git clone [email protected]:chloerei/campo.git
~ $ cd campo

Tl;dr: Run ./script/setup_dev.sh to setup all denpendency, and develop like normal Rails app.

Setup Vagrant (optional)

Recommend use vagrant(Virtuan Machine) to setup development environment, if you want to setup in host machine, skip this section.

Install Vagrant

Goto http://www.vagrantup.com/downloads.html , download and install vagrant.

Install VirtualBox

Goto https://www.virtualbox.org/wiki/Downloads , Download and install VirtualBox.

Boot Virtual Machine

~/campo $ vagrant up

Wait for vagrant up finished, then login to virtual machine:

~/campo $ vagrant ssh

Cd to proejct directory:

~ $ cd /vagrant
/vagrant $ ls
app bin ...

Setup

/vagrant $ ./script/setup_dev.sh

This script will install all dependency.

Boot server

/vagrant $ rails s

Then open http://192.168.33.10:3000 (or http://localhost:3000 if you install in host), you will see campo is running.

Clone this wiki locally