/YaleRoboticsMoodLight

The back-end for a mood light that expresses the mood of the internet!

Primary LanguagePython

YaleRoboticsMoodLight

The back-end for a mood light that expresses the mood of the internet!

Required installs

  • python3
    • Ensure you have python3 on your computer by running python3 in the shell. It should give you a command prompt that you can quit with ctrl+D

Recommended installs

Optional installs

  • ngrok
    • Exposes the server to the public

Reading

Getting started

  • Clone the repository to your computer
  • Add the confidential twitterconfig.py file to the config folder
  • Open up the shell, and navigate to the folder you just cloned
  • In the shell, run make installation (this installs all requirements for the server code to run)
    • This will trigger a change in the test file because the Makefile adds a line to the top pointing to your python 3 interpreter. This change will automatically be discarded by the .gitignore file.
  • To run the server, either run make server or FLASK_APP=main.py flask run
  • Now navigate to localhost:5000 to see the index page!
  • To test a specific function, run ./test with one of twitter emotion or color
    • For example, ./test emotion will run the getEmotion function in /util/emotion.py with the data in example_tweets.py