- Install Homebrew
- Downloader (Run all commands from the root directory of the repository):
1.
./Setup_Teardown/setup_project.sh -s true
- Handles psycopg2, Flask, and PostgreSQL. You may be asked to download the JDK- Note: If postgres failes to create the database (this sometimes happens if the createdb command is executed while postgres is still starting up), run
./Setup_Teardown/setup_project.sh -s true
again.
- Note: If postgres failes to create the database (this sometimes happens if the createdb command is executed while postgres is still starting up), run
ant -Dprefix='./'
- Auto-run:
./Setup_Teardown/install_crontab.sh
Create a file in the Utils folder named Secrets.py
, with the following text:
import sys; import os
sys.path.insert(0, os.path.abspath('..'))
sys.path.insert(0, os.path.abspath('.'))
from_email = ""
twilio_number = "" #use this format, ex. "+19999999999"
twilio_account_sid = ""
twilio_auth_token = ""
sendgrid_api_key = ""
bitly_api_login = ""
bitly_api_key = ""
To fill in empty strings:
- Sign up for Twilio. Account SID and Auth Token can be found here. Phone number can be found here. Go here to verify any phone numbers you are going to text if using Trial account.
- Sign up for SendGrid (they have to approve you, so it may take a while). After approval, go here, generate an api key, and paste it in (the long secret version that is only displayed when you generate it).
- Sign up for bitly. Go here. In the sidebar that pops up, click Advanced Settings -> API Support, and copy and paste in the api login and key displayed.
- Input any email address to send from.
- Just do it.
java -jar pipeline.jar
- One of the libraries we use, SEMILAR, has a couple bugs in it that cause occasional null pointer exceptions. These instances are fairly rare and do not affect program execution or performace in the long run.
- Run the application:
python3 WebApp/EventDetectionWeb.py
- To view the application, navigate to localhost:5000
- Update Brew:
brew update && brew upgrade
- Run Ant:
ant -Dprefix='./'
- Execute
python3 Utils/Globals.py test
- Navigate to the Testing directory.
- Unzip
articles_test
folder. Alternatively, if using your own testing data, you can create your own folder of test articles labeledarticles_test
. - To use our test database run
create_premade_test_db.sh
. Alternatively, you can set up an empty test database withsetup_project_test.sh
. - To run the vaidators and get validation results run
java -jar validator.jar -c configuration_test.json
from root project directory. - Various testing functions can be found in
Testing/Tester.py
. Make sure you run all programs from root project directory. - Make sure to execute
python3 Utils/Globals.py
(no test this time) when you are finished with testing mode.