Step 1: Let's go back to your terminal in our VM or local OS and connect to our EC2 system
ssh -i ~/.ssh/my_aws_key.pem ubuntu@18.224.96.38
Step 2: Check to see if the files we transferred using FileZilla are indeed located on our EC2 Instance. Running ls should display the following files:
Step 3: Launch our Web App by running this line:
sudo python3 webapp.py
If you see the above, Flask is running our CV Web App! Let's go the our web browser and access it:
Step 4: Enter the EC2 IP in your web browser and your should see the following.
Congratulations! You've just launched a simple Computer Vision API for anyone in the world to use! Let's upload some test images to see our Web App in action!




Awesome!
Note:
This isn't a production grade Web App, there are many things needed to make this ready for public consumption (mainly in terms of security, scalability and appearance), however as of now, it's perfect to demo friends, colleagues, potential investors etc.
To keep our API running constantly launch the python code using this instead:
sudo nohup python3 forms.py & screen
Finally, let's deploy our API version of this App and test using Postman.