Just a simple demo of a few technologies mixed up together...
- Websockets for both javascript and Tornado (Python)
- Filereader API for javascript
- Camera / Fileuploader for mobile (only android... for now..)
The basic idea is to take a picture with a mobile phone (android for now) and it will instantly be uploaded to all desktop web browsers that are currently open on the /browsers webpage. Websockets allows us to get rid of long polling and other annoying "old school" methods. This app is quite simple and light, just the way it should be. :)
- get tornado, it's awesome!
- clone this awesome repo
- open up port 8889 or change the port from the run_me.py
- cd to folder and python run_me.py
- on your phone.. browse to the your_url/phone
- on your browser.. browse to the your_url/browser
- take a picture on the phone.. and watch it instantly get uploaded to the browser..
please feel free do do whatever you want with this piece of code!