#README
###This is a default environment to start a Ruby on Rails w/ Angular project using a Vagrant instance.
####Installation:
- Download latest version of Vagrant https://www.vagrantup.com/downloads.html
- open up your terminal:
- vagrant box add ubuntu/trusty64 (downloads VM, may take a while)
- git clone https://github.com/lechegaray/vagrantrails.git downloads our preconfigured environment
- cd vagrantrails
- vagrant up creates the vagrant instance
- vagrant ssh
- git clone https://github.com/devellocus/almapp.git
- cd almapp (moves into our application directory)
- bundle install
- rake db:create connects rails to mysql
- rake db:migrate
- rake db:migrate RAILS_ENV=test
- rails s -b 0.0.0.0 starts out server
- On the host machine, navigate to localhost:3000
###YOU SHOULD COMMIT FROM INSIDE THE VAGRANT INSTANCE
- you make have to set your username and email before you can commit anything
- look below for installing your keys to your github profile
###SSH KEY IN YOUR GITHUB PROFILE:
- sudo root
- cd ~/.ssh/id_rsa go to here (inside the vagrant vm)
- copy key out of this file
- https://github.com/settings/ssh
- Add SSH key
- Now commit and push (you may have to enter your email and name the first time)