An application for evaluating emotions on Facebook.
For now the code is simply hosted here and run on Heroku.
The application provides various means of engagement.
Points are awarded for many tasks in the application.
- Completing Scientific Surveys
- Learning about Depression
- Playing Games
- Inviting Friends
- Sharing to Facebook
- Posting feedback
- Using the App regularly
Points are used to increase the probability of winning rewards, a system communicated to users in terms of their chances to win things of varying values.
Instructions for most of these steps are somewhat covered in the More Reading section below.
- Install the Github App
- Set up this source in a working directory on your computer
- Install Xcode from Apple App Store and Command Line Tools the from Apple Developer Site
- Set up a Python Virtual Environment (do not do this in the repository on your computer, use the folder your repository is inside or another folder in your system to store the virtual environment)
- Install Heroku and the related tools
- Install Flask
- Set up DB by following these directions.
- In terminal, set up your working environment and navigate to the project folder
- Open the project folder in SublimeText by running
subl .
in the terminal. (This step requires creating a soft link to SublimeText. For more info watch the first few videos in Getting the most out of Sublime Text) - Open utilities.py and make sure
DEBUG = True
(this means you will be accessing a local DB and a different Facebook app) - If you can't connect to the Internet also set
OFFLINE = True
(this sets up a fake Facebook authentication system so you don't need to ping Facebook) - Launch the app from the terminal with
python app.py
it will now be running at0.0.0.0:5000
. - Make edits and save changes. It will update immediately, however, every time you save one of the python files, return to
0.0.0.0:5000
to see the changes (because it needs to redo the login).
- The Hichhicker's Guide to Python
- Flask Tutorial
- Getting Started with Python on Heroku
- Flask and PostgreSQL on Heroku
- Getting the most out of Sublime Text - This has a few mistakes, so if you are wondering why something does not work, let me know.
- Configuring your Facebook app as a Canvas Page