Skip to content

pinetree408/p-emotiondiary

Repository files navigation

EmotionDiaryPython

An application for evaluating emotions on Facebook.

For now the code is simply hosted here and run on Heroku.

Testing, Games & Tips

The application provides various means of engagement.

Points

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.

How to Work on this Project (on a mac)

Setting up your system

Instructions for most of these steps are somewhat covered in the More Reading section below.

  1. Install the Github App
  2. Set up this source in a working directory on your computer
  3. Install Xcode from Apple App Store and Command Line Tools the from Apple Developer Site
  4. 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)
  5. Install Heroku and the related tools
  6. Install Flask
  7. Set up DB by following these directions.

Editing Code

  1. In terminal, set up your working environment and navigate to the project folder
  2. 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)
  3. Open utilities.py and make sure DEBUG = True (this means you will be accessing a local DB and a different Facebook app)
  4. 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)
  5. Launch the app from the terminal with python app.py it will now be running at 0.0.0.0:5000.
  6. 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).

More Reading