Sen descrición

Mohidul Islam 42f04845f6 remove all previously added staff while new file been uploaded %!s(int64=4) %!d(string=hai) anos
analytics 8f60b8c5ae Chnage send mail to multiple location manager and add cc mails %!s(int64=4) %!d(string=hai) anos
dashboard bb1f05806a Change permission class %!s(int64=4) %!d(string=hai) anos
facebook_app 63179f4c3a change admin fields %!s(int64=4) %!d(string=hai) anos
gauth 921dff18b3 added manager app %!s(int64=4) %!d(string=hai) anos
manager 42f04845f6 remove all previously added staff while new file been uploaded %!s(int64=4) %!d(string=hai) anos
name_extractor 79437a1a3f Remove yelp %!s(int64=4) %!d(string=hai) anos
nlu_job 86fd6c77db Change ner model with a url of ner server %!s(int64=4) %!d(string=hai) anos
review 5a221c7f7a added import excel sheet of staff list %!s(int64=4) %!d(string=hai) anos
review_automation d4e380090e add facebook access token %!s(int64=4) %!d(string=hai) anos
static f922e59a8d Update sql file %!s(int64=4) %!d(string=hai) anos
static_root 9d90886dc5 shown all replies to the frontand %!s(int64=5) %!d(string=hai) anos
user 915d17d13b Added staff user who can see all locaions analytics %!s(int64=4) %!d(string=hai) anos
yelp 8f60b8c5ae Chnage send mail to multiple location manager and add cc mails %!s(int64=4) %!d(string=hai) anos
.gitignore cc79f6878f Fixes some error in model report generator and add dataset making command. %!s(int64=4) %!d(string=hai) anos
README.md 8d6d46db79 Structure settings and wsgi for development and production environment %!s(int64=5) %!d(string=hai) anos
client_secrets.json 575b45840a Change the client_secret.json file with mybusiness secret info %!s(int64=5) %!d(string=hai) anos
manage.py c2f3d7d8c6 Fixes an existance issue %!s(int64=5) %!d(string=hai) anos
nohup.out db7ad16c10 Add a crontab to send mail in every sunday.. %!s(int64=4) %!d(string=hai) anos
requirements.txt 7485803a2b Added update staff list using datepicker field %!s(int64=4) %!d(string=hai) anos
review_automation.sql 82a41e1925 update database %!s(int64=4) %!d(string=hai) anos
review_data_set.csv af2df15a27 Update review dataset %!s(int64=5) %!d(string=hai) anos
signature_care_review_url.json 4893e1a464 Add an utility function that return all bad review %!s(int64=5) %!d(string=hai) anos

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