Initial Vagrant Setup - RepoCamp/connect2017 GitHub Wiki

From a Thumbdrive

NOTE #1: You will need about 8GB free space on your hard disk to run the tutorial

NOTE #2: If you've done a previous workshop, please delete your current virtual machine - see instructions below

  • Install Vagrant & VirtualBox if you haven’t (on the thumbdrive)
  • Copy the tutorial folder from the thumbdrive to your laptop
  • Open a terminal window and change to the tutorial/vagrant directory
  • Start the VM by typing vagrant up
  • Connect to the VM by typing vagrant ssh
    Ask for help if you don’t end up with a prompt like
    vagrant@camper:~$ ← when you see this,
    you’re ready for the tutorial exercises.

Run the demo applications

  • After you connect to the virtual machine, you should have the vagrant@camper:~$ prompt
  • Change to the demo directory cd /vagrant/connect2017
  • Install gems using bundle install
  • Setup your database using rails db:migrate
  • Start the application using rails hydra:server
  • Visit the demo app at http://localhost:3000

Next: Set up and run the Test Suite

HOME

##Delete an existing virtual machine## vagrant box remove camper