Checklist
Before you go, double check that you can complete the tasks below so we can hit the ground running tomorrow morning.
If you're using a virtual machine
-
Open a command line on your computer.
- On macOS: In Finder, start Applications > Utilities > Terminal, or find the Terminal application through Spotlight (click the magnifying glass in the top right of the screen and start typing 'Terminal')
- On Windows: open up Git Bash from your desktop or All Programs menu. Do not use Power Shell or Command Prompt! It doesn't support the ssh command that we need.
- On Linux: press Ctrl + Alt + T or Find Terminal under the Accessories category of your applications menu.
Go to the RailsBridge folder: type
cd ~/Desktop/railsbridge
Start the virtual machine: type
vagrant up
Connect to the virtual machine: type
vagrant ssh
Start the Ruby interactive editor: type
irb
Exit the Ruby interactive editor: type
exit
Disconnect from the virtual machine by typing
exit
Stop the virtual machine for the night: type
vagrant halt
.From Finder or the Start menu, start Sublime Text or your text editor application.
Get a setup confirmation sticker from a TA and stick it on your laptop where it will be visible when you return tomorrow.
If you're using Cloud9
-
Log into your Cloud9 console if you're not already there.
- Visit aws.amazon.com/cloud9
- Click "Sign In to the Console" in the top right
- Log in with the credentials you created
- Select Cloud9 under "services"
Find the "railsbridge" project you just created under "Your environments" and click "Open IDE"
-
Go to the terminal at the bottom of the screen.
- If no terminal is currently open, click the green plus (+) sign and select "New Terminal"
In the terminal, type
irb
to open an interactive ruby session-
Write some ruby!
first_number = 1 second_number = 2 first_number + second_number
Type
exit
when you are done with yourirb
session. That's it!
If you're using native install
-
Open the terminal
- On macOS: In Finder, start Applications > Utilities > Terminal, or find the Terminal application through Spotlight (click the magnifying glass in the top right of the screen and start typing 'Terminal')
- On Windows: open up Git Bash from your desktop or All Programs menu. Do not use Power Shell or Command Prompt! It doesn't support the ssh command that we need.
- On Linux: press Ctrl + Alt + T or Find Terminal under the Accessories category of your applications menu.
In the terminal, type
irb
to open an interactive ruby session-
Write some ruby!
first_number = 1 second_number = 2 first_number + second_number
Type
exit
when you are done with yourirb
session. That's it!
You're Done!
Congratulations, you're done with the Friday session. We'll see you at 9:30am tomorrow. Please bring the same laptop you used tonight.
If you have any questions, comments, or feedback on tonight's material, don't hesitate to let a TA know. We also have a feedback form that you can use early and often to provide feedback about the workshop.