- Go to
c9.ioand log in - Create a new workspace
Workspace name=hello-stripeClone from Git or Mercurial URL=https://gist.github.com/f71ef966f488ab8fd984e0791cf96c07.git- (everything else at defaults)
Check out the files you have in this folder, see what they have.
In the terminal (at the bottom where it says bash) type:
gem install sinatra sinatra-contrib stripe- this will install the ruby libraries, called
gems, that we need to run our webservice with Stripe
- this will install the ruby libraries, called
ruby app.rb -o $IP -p $PORT- this will run the file app.rb, and tell it to make the site available online at a location.
- Cloud 9 has wired things up so
$IPand$PORTcontains what it should on their server.
- In the menu bar, click
Preview=>Preview Running Applicationand a browser pane will appear. - After each change you make to our files:
- save the file(s)
- refresh the browser pane