Running CPP in a Vagrant VM is probably the quickest way to get up and running.
This sets up Ruby 1.9.3 on an Ubuntu 12.04 VM, based on this guide
- Install VirtualBox
- Install Vagrant
- If you're on Linux, install nfsd
- If you're on Windows, install git, and make sure the line endings are set to Unix (NOT CRLF)
- Clone the git repo
- In terminal, cd into the cpp directory and type 'vagrant up'
- Wait forever while everything is downloaded and set up (if your internet cuts out during this step, something may go wrong and you may have to run this step again)
- If this is your first time running the project, seed the db with the initial logins by typing './d seed-db' into the terminal (this command will not work on Windows)
- You should be up and running! Visit http://localhost:3000 in your browser to see the site.
- The vm is set up to mirror the files in the cpp directory, so you can change any files in there and watch the results update instantly on the site - no need to even restart.
Magic!
Allows you to view project entities in graphical form. More Info
- Install GraphViz with
brew install graphviz
orsudo aptitude install graphviz
- Run
rake erd
for a basic diagram - For a full diagram w/ all bells and whistles, run
rake erd title='CPP Model Relationships' inheritance=true polymorphism=true orientation=vertical