acpc_vagrant
Vagrant virtual machine set up for developing, testing, and (possibly) deploying the ACPC poker GUI client and related gems.
Developing with forks of the original ACPC repositories
Edit the paths in grab_projects.sh
to retrieve your fork of the ACPC repositories if desired.
Zero to Playing Poker
- Download this repository
- Install Ruby (>= 1.9.2)
- On Windows, go to http://rubyinstaller.org/downloads/ and install:
- Ruby 2.1.6
- Ensure that the "Add Ruby executables to your PATH" is selected during installation so you can run the
gem
andbundle
later.
- Ensure that the "Add Ruby executables to your PATH" is selected during installation so you can run the
- The corresponding DevKit
- Follow these Quick Start instructions.
- Ruby 2.1.6
- On Windows, go to http://rubyinstaller.org/downloads/ and install:
- Install Bundler,
gem install bundler
- Install gems,
bundle install
in project root) - Install cookbooks,
librarian-chef install
- Start the virtual machine,
vagrant up
- This step could take tens of minutes
- If connecting to the VM times out, but you can still manually connect to it afterwards, then run
vagrant halt
andvagrant up
orvagrant reload
. This occurred for me on Windows and vagrant was able to complete the VM setup after restarting.
- Log in to the virtual machine,
vagrant ssh
on Linux or OSX, PuTTY on Windows- On Windows, you can try
vagrant ssh
first, but if that fails, follow these instructions. Afterwards, you should be apply to access the VM from PuTTY orvagrant ssh
.
- On Windows, you can try
- Navigate to shared project directory,
cd /vagrant/repositories/acpc_poker_gui_client
- Install gems,
bundle install
- Compile the ACPC server project,
bundle exec acpc_dealer compile
- Start background worker,
bundle exec sidekiq -r ./ -L ./log/sidekiq.log -t 1 &
- Start the Rails server,
bundle exec rails s
- Point your browser to
localhost:3000
, and you should see the match start screen. You should now be able to start a match. If that succeeds, congratulations, you've completed the set up!