Introduction to Cloud Programming

You can find the lecture slides here.

Learn about Cloud9 IDE

Install the Latest Version of Python

Here's how you install Python 3.6 into your workspace:

cd /home/ubuntu
wget https://www.python.org/ftp/python/3.6.2/Python-3.6.2.tar.xz
tar -xvf Python-3.6.2.tar.xz 
cd Python-3.6.2/
./configure 
make 
sudo make altinstall

You should test to make sure you've got Python 3.6 installed afterwards:

mikematera:~/Python-3.6.2 $ python3.6 --version
Python 3.6.2
mikematera:~/Python-3.6.2 $

Run The Example 50 App

Run these commands. You will notice a popup showing you where you can view your running web application:

cd ~/workspace/ex50
python ./bin/app.py

Go to the link and check it out. You can also use the Preview button.

Change Python Versions

Look what happens when you run the sample app using a newer version of Python:

mikematera:~/workspace/ex50 $ python3.6 bin/app.py                                                                                                              
Traceback (most recent call last):
  File "bin/app.py", line 1, in <module>
    import web
ModuleNotFoundError: No module named 'web'

Cloud Accounts

In this class you will be able to run your code on the infrastructure of multiple cloud vendors for free.