This will run you through the steps to configure your web development environment using the nitrous.io install process.
Note: These websites may ask you if you want to also download the software programs to go along with the accounts (The Heroku ToolBelt, GitHub for Windows, or GitHub for Mac). We won't be using these programs so you won't need to download them.
First go to GitHub.com and create an account.
Then go to Heroku.com and create an account there as well.
First go to Nitrous.io and create an account.
Check your email and confirm your account by clicking the link that is emails to you in the nitrous sign up flow.
Click the Green "Open Dashboard" button
Create a Ruby on Rails box.
- Make sure the "Ruby/Rails" logo is colored:
- For name enter "Firehose"
- For region enter "US West"
- Leave "Download a GitHub repo" blank
- Press the orange "Create Box" button.
Wait a few moments until you see "firehose is running" with a green icon on the page the gets displayed:
Press the orange "Next" button:
Scroll to the bottom of the page and press the orange "Okay, Take Me to my Box!" button:
Then your coding environment will load up in the browser.
Install your database
Click the bottom part of the window, where you see the dollar sign:
Type this (or copy & paste it), exactly like this right after the dollar sign:
parts install postgresql
Once you get the dollar sign displayed again continue to Part C (make sure there are no error messages).
Type this (or copy & paste it), exactly like this right after the dollar sign:
parts start postgresql
Once you get the dollar sign displayed again continue to the next step (make sure there are no error messages).
Sometimes you will be prompted for a password (your computer login password, user account, etc.) when you're installing programs using the terminal window. When you start typing the password, it will look like it nothing has been typed (eg. nothing will display on the screen as type). That's totally fine. Your password is being entered, just not shown to you. So keep typing and press enter when you're done typing. In case you type your password wrong it will prompt you to type in your password again. Why? So nobody can look over your shoulder and see your password or know how many characters your password has.
In the window with the dollar sign, run this command (this will prompt you for your heroku email address and password. When it prompts you for that, enter that here):
heroku login
Make sure it displays: "Authentication successful.", and when you see that go onto the next command to run:
heroku keys:add
Once you see the "Uploading SSH public key /home/action/.ssh/id_rsa.pub... done" , move on.
In the window with the dollar sign, run this command.
NOTE: this will take a while (it hung for ~18 minutes for me so hang in there and wait until it says "Successfully installed nokogiri-1.6.1")
gem install nokogiri
In the window with the dollar sign, run this command.
gem install github_api
In the window with the dollar sign, run this command (this will prompt you for your GitHub username and password (note, this isn't your GitHub email address). When it prompts you for that, enter that here):
curl "https://raw.githubusercontent.com/FirehoseWeekend/install-guide/master/nitrous_github_action.rb" > ~/.firehose-github.rb && ruby ~/.firehose-github.rb
If you see it say "ok!" continue to the next step.
Then run the command below and adjust this to have your name inside the double quotes:
git config --global user.email "you@example.com"
Then it will immediately return with the dollar sign and then not display anything else. After this happens run the command below and adjust this to have your email inside the double quotes:
git config --global user.name "Your Name"
Put your hand up and ask for Marco and Ken to help you out and test that your web development environment is properly setup.
Information about how the database is setup is located here - Marco & Ken will go over what this means later in the workshop.