Không có mô tả

Mohidul Islam 8a19d1be9f No need to pass location object it work with only location_ud 5 năm trước cách đây
analytics 0cdafb8067 move bad reviews email to another file 5 năm trước cách đây
dashboard 98e9a32bf3 Style the message 5 năm trước cách đây
gauth c60fb9d166 remove a field from location table and add a function to mail bad reviews to the care staff 5 năm trước cách đây
name_extractor 8a98e950f9 clean a little bit and update requirements.txt 5 năm trước cách đây
nlu_job 9d90886dc5 shown all replies to the frontand 5 năm trước cách đây
review 8a19d1be9f No need to pass location object it work with only location_ud 5 năm trước cách đây
review_automation 0e040e2e47 Change review collect method and contab execute in 6 hour interval 5 năm trước cách đây
static_root 9d90886dc5 shown all replies to the frontand 5 năm trước cách đây
.gitignore bdf2ea13b0 added a new app named analytics for analysis staff 5 năm trước cách đây
README.md 8ee1992421 Update README.md for development environment 5 năm trước cách đây
client_secrets.json 575b45840a Change the client_secret.json file with mybusiness secret info 5 năm trước cách đây
manage.py 011448b6f6 Rename the project gauth to review_automation 5 năm trước cách đây
requirements.txt b513094b47 update requirements.txt 5 năm trước cách đây
review_automation.sql d6b24532ad update database 5 năm trước cách đây
review_data_set.csv af2df15a27 Update review dataset 5 năm trước cách đây
signature_care_review_url.json 4893e1a464 Add an utility function that return all bad review 5 năm trước cách đây

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

5. Add all corn jobs

(env) ➜ python manage.py crontab add
# 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
    
    • Get model prediction report.

      (env) ➜ python manage.py model_report n_days
      # Example for last 30 days:
      (env) ➜ python manage.py model_report 30