I'm switching from Flask to Django. Ignore this repo.
Django app exists for an image service -- looks like a great fit. Seemed like cheating so I skipped it.
https://github.com/matthewwithanm/django-imagekit
Decided to use Flask due to service simplicity. Additionally, I haven't used Flask before. Thought it would be fun to explore it.
Forked AWS Flask app from this tutorial to start.
https://github.com/inkjet/flask-aws-tutorial
Created Amazon AMI instance running this service. Browser to:
- running the service
- curling the service
- editing source files
Putty to instance (note: need gemotions.pem file). Currently: [email protected]
sudo su -
cd /opt/flask-image-app
source flask-aws/bin/activate
python application.py
curl http://54.90.102.31:5000/v1/image
curl http://54.90.102.31:5000/v1/image/key1