Text Technologies for Data Science Group Assignment 2018/19
Web app: https://ttds-group-project.herokuapp.com/
External vision services are currently disabled.
Real-time image content search by keyword on Twitter streaming with our own search engine using TFIDF score with data from Twitter Streaming API and additional image information from Google Vision API and Microsoft Vision API
git clone https://github.com/BOSS-Danuphan/ttds-group-project-pyflask.git
cd ttds-group-project-pyflask
$ npm install
# For Windows (cmd)
C:\ttds-group-project-pyflask>.\venv\Scripts\activate
(venv) C:\ttds-group-project-pyflask>
# For Linux
$ source venv/bin/activate
(venv) $
(venv) $ pip install -r requirements.txt
# For Windows (cmd)
(venv) C:\ttds-group-project-pyflask>deactivate
C:\ttds-group-project-pyflask>
# For Linux
(venv) $ deactivate
$
- heroku/nodejs
- heroku/python
$ cp .env-example .env
Available configurations:
SECRET_KEY
: Application secret keyAPP_SETTINGS
: can beapp.config.ProductionConfig
(default, for production),app.config.StagingConfig
,app.config.DevelopmentConfig
(for local development),app.config.TestingConfig
DATETIME_FORMAT
: Display datetime format (default: "%Y-%m-%d %H:%M:%S")INDEXFILE_PATH
: Path to index file (default: "myindex.txt")INDEX_WRITER
: Options are FileWriter, AzureBlobWriter, or blank (None). Default is None.TWITTER_CONSUMER_KEY
: Twitter consumer keyTWITTER_CONSUMER_SECRET
: Twitter consumer secretTWITTER_ACCESS_TOKEN_KEY
: Twitter access keyTWITTER_ACCESS_TOKEN_SECRET
: Twitter access secretENABLE_EXTERNAL_VISION_SERVICE
: 1: enable external vision service call, 0: disable (dafault)MS_VISION_KEY
: Microsoft Vision API keyGOOGLE_VISION_KEY
: Google Vision API keyKEEP_ALIVE
(for scheduler job): '1' run ping job, otherwise '0' (default)PING_EVERY_X_MINUTES
(for scheduler job): run ping job itself every X minutes (according toKEEP_ALIVE
)DOMAIN_URL
(for scheduler job): Domain urlAZURE_BLOB_ACCOUNT
= 'Azure blob storage account name'AZURE_BLOB_KEY
= 'Azure blob strage account key'
$ cd client
$ npm start
(venv) $ python run.py
- Run project as a single service i.e. backend service will serve frontend minified files (result from build command of create-react-app)
(venv) $ npm run dev
- Alternatively, run project as 2 separated services i.e. frontend client and backend service
(venv) $ npm run dev:separated
(venv) $ npm run prod