emailed-me
emailed-me copied to clipboard
A mini-site for checking Google's Gmail feed with Oauth.
A mini-site for checking Google's GMail feed with Oauth. See a live example at http://emailed-me.appspot.com
Setup
Copy secrets.py.example to secrets.py and fill in the necessary information.
SECRET_KEYis used by Flask. Runimport os; os.random(24)and paste its resultsCONSUMER_KEYandCONSUMER_SECRETwill work as is, or you canregister your app and get a key/secret from Google <http://code.google.com/apis/accounts/docs/OAuth.html#prepRegister>_TEST_GOOGLE_EMAILandTEST_GOOGLE_PASSWORDcan be used to test your application, but aren't required otherwise.
Run
To run using the App Engine SDK <http://code.google.com/appengine/downloads.html#Google_App_Engine_SDK_for_Python>_, simply run::
dev_appserver.py .
within this directory.
To run outside of App Engine, either:
- add
libto yourPYTHONPATH, or pip install -r requirements.pip
then run::
python application.py
Test (optional)
Testing is done using Twill. It is easiest to install the requirements via pip install -r requirements.pip, then run::
python tests.py