Tip:
Highlight text to annotate it
X
Welcome to lecture 2 of startup engineering. I'm your instructor, balaji srinivasan and
today we're going to learn how to set up a basic website on heroku and you're
also going to learn how to do development on amazon and
push and pull code from github and a few other things besides. without further ado, let's
jump in. so as i mentioned, our goal is to get you
set up with the basic development environment. and we can get a simple page online by following
the following steps.
so you're going to set up google chrome and your terminal, and sign up for a bunch of
web service accounts. you're going to initialize and connect to
Amazon web services, AWS cloud instance. then you're going to clone code
from this repository, get your page live on the web, as shown in figure 1.
so this is the goal of your lecture today, you should be able to kind of step through,
as you kinda watch, you can execute some of the commands on your own and
this is kind of your final goal.
how will these services, these services i mentioned over here fit together, if you look
at figure 2, this gives a good illustration. right, essentially
start from the bottom, you are running your own laptop
you are going to be launching a terminal or cygwin window, terminal.app on OS x or cygwin
on windows, you're running ssh, with ssh you need to connect
to a t1 micro instance and the reason why i've kind of
structured it like this where it's like a slice out of a cube, the way that amazon works
is that it's a single server that's virtualized into
many little chunks like this, each of which is running its own
semi independent operating system, that's why it's called virtualization. this t1 micro
virtual machine, that you're actually connected to, this is
where you're gonig to be running all your commands, in particular one
of the things you're going to do is you're going to pull down from github,
you're going to mess around with it a little bit, then you're going to push to heroku and
then you're going to have a user browse to your app dot heroku
dot com. and this is sort of the protocol for how you develop over here and you'll kind
of pull and push or push and pull code back and forth like so,
and then when you're ready, you'll deploy to heroku and someone can look at the code
over here. so this is sort of the development flow that
we're going to be setting up. in addition, we're going to talk about, this
is very simple, you'll set up google chrome, in the next lecture, we will going to talk
about set up a command line interface so you can type in and control
the computer purely by typing.