Sin descripción

Mohidul Islam 2734fc3cf3 Add facebook review and negative review to weekly-summary email body hace 4 años
analytics 2734fc3cf3 Add facebook review and negative review to weekly-summary email body hace 4 años
dashboard e50891966f Change token url to improve security hace 5 años
facebook_app 2734fc3cf3 Add facebook review and negative review to weekly-summary email body hace 4 años
gauth 01b97b15af Remove a function and and handle all errors that occure when absence of this function hace 5 años
name_extractor ffe67678b5 add functionality to send email per weekly hace 4 años
nlu_job cf6aa09c8f Added a field to custom reply and fix all issues associate with it hace 5 años
review 2b3041010c clean comment translated text-stream before sotre hace 4 años
review_automation 2734fc3cf3 Add facebook review and negative review to weekly-summary email body hace 4 años
static_root 9d90886dc5 shown all replies to the frontand hace 5 años
yelp 2734fc3cf3 Add facebook review and negative review to weekly-summary email body hace 4 años
.gitignore bdf2ea13b0 added a new app named analytics for analysis staff hace 5 años
README.md 8d6d46db79 Structure settings and wsgi for development and production environment hace 5 años
client_secrets.json 575b45840a Change the client_secret.json file with mybusiness secret info hace 5 años
manage.py c2f3d7d8c6 Fixes an existance issue hace 5 años
nohup.out db7ad16c10 Add a crontab to send mail in every sunday.. hace 4 años
requirements.txt 8d66b27a51 added funtion to make network call for pages review hace 4 años
review_automation.sql 33e72e634c Update database hace 5 años
review_data_set.csv af2df15a27 Update review dataset hace 5 años
signature_care_review_url.json 4893e1a464 Add an utility function that return all bad review hace 5 años

README.md

Byte Trek Reputation Management

Installation:

1. Clone The reporsitory

➜  git clone http://bytetrek.com:30000/ByteTrek-Projects/review-automation-backend.git

2. Create a virtual environment and active it.

➜  python3 -m venv env
➜  source env/bin/activate

3. Create a mysql database and import the .sql file

(env) ➜  mysql -u root -h localhost -p                 # mysql -u user -h host -p
mysql> CREATE DATABASE review_automation;
mysql> SHOW DATABASES;                                 # Make sure database is created or not.
exit                                                   # Exit out of the mysql prompt
(env) ➜  mysql -u root -p review_automation < review_automation.sql
# Make sure everything is just fine.
(env) ➜  mysql -u root -h localhost -p
mysql> USE review_automation;
mysql> SHOW TABLES;

4. Run the development server

(env) ➜ python manage.py runserver --settings=review_automation.settings.dev

5. Add all corn jobs

(env) ➜ python manage.py crontab add --settings=review_automation.settings.dev
# Make sure corn job has added successfully
(env) ➜ crontab -l                                     # Return list of cronjobs

6. Some usefull management command

  • Store all un-recorded reviews to the database.

    (env) ➜ python manage.py collect_reviews --settings=review_automation.settings.dev
    
    • Get model prediction report.

      (env) ➜ python manage.py model_report n_days
      # Example for last 30 days:
      (env) ➜ python manage.py model_report 30 --settings=review_automation.settings.dev