CCHits.net Remastered... again!
Yep, that's right folks. CCHits.net version 2 is getting to be unmaintainable now, and we're a couple of years after the last release. Frankly, the world of PHP development has moved on (arguably, it had moved on when I wrote V2, but... let's not go there!) and CCHits.net needs to be maintainable, and Laravel seems to be the best bet for me right now.
So, this repo contains the migration effort to move away from my own custom-written framework, and use a standards compliant, accessible, testable framework, with more than one user developing it.
Hacking on the code
The following are the "standard tools" being used to develop CCHits.laravel. If you're playing along at home, these instructions assume you're using Ubuntu. Follow the links to the package if you need help getting these in and your distribution/OS of choice isn't Ubuntu.
uname -i== 'x86_64' ]; then wget
curl -s http://www.vagrantup.com/downloads.html | sed 's/\s/\n/g' | grep x86_64.deb | cut -c 7- | cut --delimiter=\" -f 1-O vagrant.deb; sudo dpkg -i vagrant.deb; else wget
curl -s http://www.vagrantup.com/downloads.html | sed 's/\s/\n/g' | grep i686.deb | cut -c 7- | cut --delimiter=\" -f 1-O vagrant.deb; sudo dpkg -i vagrant.deb; fi
sudo apt-get install virtualbox
sudo apt-get install software-properties-common sudo apt-add-repository ppa:ansible/ansible sudo apt-get update sudo apt-get install ansible
apt-get install git
Getting the code running locally
First, clone the repo into your own user tree at GitHub - here we'll assume your username is JonTheNiceGuy :)
git clone firstname.lastname@example.org:JonTheNiceGuy/cchits.laravel cchits cd cchits/Vagrant vagrant up
This pulls down the code from Github's servers, then fires it up. Depending on your local machine's configuration, it's likely to ask you which interface you want to "bridge" across. This is because it wants to get an IP address from your DHCP server, so you can visit http://laravel (assuming your DHCP server also ties into your DNS resolver). If it doen't "just work", from the same directory, once it's finished booting and provisioning (you'll get some text about "playbook finished") type
vagrant ssh then
ifconfig and it'll tell you what the IP address of the device is, at which point you can visit that via your browser instead.
As of right now, the repo is pretty bare, with little more than the boilerplate laravel build, plus a couple of tweaks suggested by the Laracasts.com site... oh, and the Vagrant/Ansible config that's bringing this lot together right now.
I hope you get a chance to play with this, and hopefully make some suggestions!
All the best,
Jon "The Nice Guy" Spriggs email@example.com