-
-
Save mixellent/11172135 to your computer and use it in GitHub Desktop.
Revisions
-
mixellent revised this gist
Apr 23, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -24,7 +24,7 @@ Once Vagrant has been installed, open the terminal and create a separate directory for our Vagrant environment. ``` mkdir ~/angular-rails-workshop && cd $_ ``` Our environment will run Ubuntu 12.04 LTS 32-bit. We can download a -
mixellent revised this gist
Apr 23, 2014 . 1 changed file with 15 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -198,4 +198,19 @@ npm -v should work as well. ## Cloning the Project Git Repos Let's clone the basic rails-api app first by running ``` git clone git://github.com/tikalk/workshop-rails-api-template-basic.git RailsApp ``` Now let's clone the basic angular app by running ``` git clone git://github.com/tikalk/workshop-angular-template-basic.git AngularApp ``` TODO -
mixellent revised this gist
Apr 22, 2014 . 1 changed file with 2 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -48,9 +48,8 @@ We can then start using it by running vagrant up ``` You now have a working virtual machine inside VirtualBox running Ubuntu 12.04 LTS 32-bit. You can access the machine via ssh by running ``` vagrant ssh -
mixellent revised this gist
Apr 22, 2014 . 1 changed file with 8 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -34,10 +34,17 @@ Vagrant box with this OS from the Vagrant cloud by running vagrant box add hashicorp/precise32 ``` Once the box has been downloaded, we can initialize it by running ``` vagrant init hashicorp/precise32 ``` This will place a Vagrantfile in your current directory. We can then start using it by running ``` vagrant up ``` -
mixellent revised this gist
Apr 22, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -100,7 +100,7 @@ sudo apt-get install curl ### Installing Ruby It is recommended to install ruby using a version management tool, like [RVM](http://rvm.io) or [rbenv](https://github.com/sstephenson/rbenv). For the rest of this guide we'll assume that RVM is being used, but rbenv can be used as well. -
mixellent revised this gist
Apr 22, 2014 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -105,7 +105,7 @@ It's recommended to install ruby using a version management tool, like For the rest of this guide we'll assume that RVM is being used, but rbenv can be used as well. #### Installing RVM Install RVM by running this command, then **follow the installation instructions**. ``` @@ -155,7 +155,7 @@ First off, let's create a .gemrc file in our home directory. echo "gem: --no-document" >> ~/.gemrc ``` This setup will make the gem installation process much faster, since it basically tells rubygems to download only the gem itself, ignoring any documentation files. The last thing we need to install is the [bundler gem](http://bundler.io/). We'll do it by running @@ -176,7 +176,7 @@ sudo apt-get update sudo apt-get install nodejs ``` After the installation has comleted, you can check that Node is working by running ``` -
mixellent revised this gist
Apr 22, 2014 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,6 +11,8 @@ For this workshop we'll need to create and setup a closed development environmen Download and install the latest version of VirtualBox from [the virtualbox site](https://www.virtualbox.org/wiki/Downloads). You should choose to download the VirtualBox platform packages for your relevant OS. ## Vagrant Setup -
mixellent revised this gist
Apr 22, 2014 . 1 changed file with 15 additions and 8 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,17 +1,24 @@ # Installation For this workshop we'll need to create and setup a closed development environment using [Vagrant](http://www.vagrantup.com/) and [VirtualBox](https://www.virtualbox.org/). Once this environment is up and running, we'll install the following components: * Git * RVM * Ruby 2.1.0 * Node.js 0.10 ## VirtualBox Setup Download and install the latest version of VirtualBox from [the virtualbox site](https://www.virtualbox.org/wiki/Downloads). ## Vagrant Setup Download and install the latest version of Vagrant from [the vagrant site](http://www.vagrantup.com/downloads.html). Once Vagrant has been installed, open the terminal and create a separate directory for our Vagrant environment. ``` @@ -58,7 +65,7 @@ You can exit this environment whenever you want, by running logout ``` Then, if you want to, you can gracefully shutdown the virtual machine, by running ``` @@ -126,7 +133,7 @@ running the following command. rvm install 2.1.0 ``` If the installation process was successful, try running ``` rvm list @@ -139,8 +146,8 @@ now tell RVM to use it as default. rvm use --default ruby-2.1.0 ``` Now that we have ruby installed, we'll need to install some basic gems. First off, let's create a .gemrc file in our home directory. ``` echo "gem: --no-document" >> ~/.gemrc @@ -167,14 +174,14 @@ sudo apt-get update sudo apt-get install nodejs ``` After the installation finished you can check that Node is working by running ``` node -v ``` The node version should be 0.10 or higher. [NPM](https://www.npmjs.org) should also have been installed, so running ``` npm -v -
izharg revised this gist
Apr 17, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -152,7 +152,7 @@ The last thing we need to install is the [bundler gem](http://bundler.io/). We'll do it by running ``` gem install bundler -v '1.5.1' ``` ### Installing Node.js -
izharg revised this gist
Apr 17, 2014 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -163,6 +163,7 @@ We'll install it by running the following commands ``` sudo apt-get install python-software-properties python g++ make sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get update sudo apt-get install nodejs ``` -
izharg revised this gist
Apr 17, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -158,7 +158,7 @@ gem install bundler ### Installing Node.js We're going to use the latest version of Node.js (currently 0.10.26). We'll install it by running the following commands ``` sudo apt-get install python-software-properties python g++ make -
izharg revised this gist
Apr 17, 2014 . 1 changed file with 5 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -58,7 +58,7 @@ You can exit this environment whenever you want, by running logout ``` Then, if you want to, you can gracefully shut down the virtual machine, by running ``` @@ -95,9 +95,9 @@ It's recommended to install ruby using a version management tool, like [RVM](http://rvm.io) or [rbenv](https://github.com/sstephenson/rbenv). For the rest of this guide we'll assume that RVM is being used, but rbenv can be used as well. #### Installing RVM Install RVM by running this command, then **follow the insatllation instructions**. ``` curl -L https://get.rvm.io | bash -s stable @@ -117,7 +117,7 @@ to check whether other dependecies need to be installed. * [RVM cheat sheet](http://cheat.errtheblog.com/s/rvm) #### Installing Ruby 2.1 Now that RVM has been installed, we can now install ruby 2.1 by running the following command. -
izharg revised this gist
Apr 17, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,7 +11,7 @@ For this workshop we'll need to create and setup a closed development environmen Download and install the latest version of Vagrant from [the vagrant site](http://www.vagrantup.com/downloads.html). Once Vagrant has been installed, open the terminal and create a seperate directory for our Vagrant environment. ``` -
izharg revised this gist
Apr 17, 2014 . 1 changed file with 97 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,12 +1,96 @@ # Installation For this workshop we'll need to create and setup a closed development environment using [Vagrant](http://www.vagrantup.com/). Once this environment is up and running, we'll install the following components: * Git * RVM * Ruby 2.1.0 * Node.js 0.10 ## Vagrant Setup Download and install the latest version of Vagrant from [the vagrant site](http://www.vagrantup.com/downloads.html). Once Vagrant has been install, open the terminal and create a seperate directory for our Vagrant environment. ``` mkdir ~/angular_rails_workshop && cd $_ ``` Our environment will run Ubuntu 12.04 LTS 32-bit. We can download a Vagrant box with this OS from the Vagrant cloud by running ``` vagrant box add hashicorp/precise32 ``` Once the box has been downloaded, we can start using it by running ``` vagrant init hashicorp/precise32 vagrant up ``` After running the above two commands, you'll have a fully running virtual machine in VirtualBox running Ubuntu 12.04 LTS 32-bit. Now you can access it via ssh ``` vagrant ssh ``` You should now see the following output ``` Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic-pae i686) * Documentation: https://help.ubuntu.com/ Welcome to your Vagrant-built virtual machine. Last login: Thu Apr 17 10:53:27 2014 from 10.0.2.2 vagrant@precise32:~$ ``` You are now working inside a virtual machine running Ubuntu. You can exit this environment whenever you want, by running ``` logout ``` Then if you want to you can gracefully shut down the virtual machine, by running ``` vagrant halt ``` You can start it again by running 'vagrant up' & 'vagrant ssh'. **Additional Resources** * [Vagrant Docs](http://docs.vagrantup.com) ## Ubuntu Setup Now that we're inside the virtual machine running Ubuntu 12.10, we'll need to install the rest of our stack. ### Installing Git ``` sudo apt-get update sudo apt-get install git-core ``` ### Installing Curl ``` sudo apt-get install curl ``` ### Installing Ruby It's recommended to install ruby using a version management tool, like [RVM](http://rvm.io) or [rbenv](https://github.com/sstephenson/rbenv). For the rest of this guide we'll assume that RVM is being used, but rbenv can be used as well. @@ -35,7 +119,7 @@ to check whether other dependecies need to be installed. ### Installing Ruby 2.1 Now that RVM has been installed, we can now install ruby 2.1 by running the following command. ``` @@ -49,7 +133,7 @@ rvm list ``` You should be able to see ruby 2.1 in the list installed rubies. We can now tell RVM to use it as default. ``` rvm use --default ruby-2.1.0 @@ -71,13 +155,16 @@ gem](http://bundler.io/). We'll do it by running gem install bundler ``` ### Installing Node.js We're going to use the latest version of Node.js (currently 0.10.26). We'll install by rinnung the following commands ``` sudo apt-get install python-software-properties python g++ make sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get install nodejs ``` After the installation finished you can check that node is working by running -
izharg revised this gist
Apr 17, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -86,7 +86,7 @@ running node -v ``` The node version should be 0.10 or higher. [NPM](https://www.npmjs.org) should also been installed, so running ``` npm -v -
izharg revised this gist
Apr 17, 2014 . 1 changed file with 6 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,18 +9,17 @@ For this workshop you will first need to install the following componenets: ### OS X / Linux It's recommended to install ruby using a version management tool, like [RVM](http://rvm.io) or [rbenv](https://github.com/sstephenson/rbenv). For the rest of this guide we'll assume that RVM is being used, but rbenv can be used as well. ### Installing RVM Install RVM by running this command, then follow the insatllation instructions. ``` curl -L https://get.rvm.io | bash -s stable ``` After the installation is complete, run ``` rvm requirements @@ -49,14 +48,14 @@ If the installation process was successfull, try running rvm list ``` You should be able to see ruby 2.1 in the list installed rubies. We can now tell rvm to use it as default. ``` rvm use --default ruby-2.1.0 ``` Now that we have ruby installed, we'll need to install some basics gems. First off, lets create a .gemrc file in our home directory. ``` -
izharg created this gist
Apr 17, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,99 @@ # Installation For this workshop you will first need to install the following componenets: * Ruby 2.1.0 * Node.js 0.10 ## Installing Ruby ### OS X / Linux It's recommended to install ruby using a version management tool, like [RVM](http://rvm.io) or [rbenv](https://github.com/sstephenson/rbenv). For the rest of this guide we'll assume that RVM is being used, but you can use rbenv as well. ### Installing RVM Install RVM by running the install script: ``` curl -L https://get.rvm.io | bash -s stable ``` And follow the insatllation instructions. After the installation is complete, run ``` rvm requirements ``` to check whether other dependecies need to be installed. **Additional Resources** * [Official RVM installation guide](http://rvm.io/rvm/install) * [RVM cheat sheet](http://cheat.errtheblog.com/s/rvm) ### Installing Ruby 2.1 Assuming RVM has been installed, you can now install ruby 2.1 by running the following command. ``` rvm install 2.1.0 ``` If the installation process was successfull, try running ``` rvm list ``` You should be able to see ruby 2.1 on the list of rubies install. We can now tell rvm to use it as default. ``` rvm use --default ruby-2.1.0 ``` Now that we have ruby installed, we'll need to install somw basics gems. First off, lets create a .gemrc file in our home directory. ``` echo "gem: --no-document" >> ~/.gemrc ``` This setup will make the gem installation process much faster, since it basically tells rubygems to download only the gem itself, ingnoring any documentation files. The last thing we need to install is the [bundler gem](http://bundler.io/). We'll do it by running ``` gem install bundler ``` ## Installing Node.js * OS X / Windows users use the [installers on available on the Node.js site](http://nodejs.org/download). * Linux users should use [this installation guide](https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager#ubuntu-mint). After the installation finished you can check that node is working by running ``` node -v ``` The node version should be 0.10 or higher. [NPM](https://www.npmjs.org) should also had been installed, so running ``` npm -v ``` should work as well. ## Cloning the Project Git Repos TODO