暫無描述

Mohidul Islam b272506e40 extract names for all platform 4 年之前
analytics f4472071aa Change negative review notifier email body and subject 4 年之前
dashboard b272506e40 extract names for all platform 4 年之前
facebook_app b272506e40 extract names for all platform 4 年之前
gauth 6fac0ac94f Change location filed type and added registration mechanism 4 年之前
name_extractor b272506e40 extract names for all platform 4 年之前
nlu_job f020986488 Added new spacy model and change dependent functions, And show staff names in frontend 4 年之前
review f4472071aa Change negative review notifier email body and subject 4 年之前
review_automation f020986488 Added new spacy model and change dependent functions, And show staff names in frontend 4 年之前
static_root 9d90886dc5 shown all replies to the frontand 5 年之前
user b272506e40 extract names for all platform 4 年之前
yelp 051f424eee Update yelp scrapper as yelp forntend change little bit 4 年之前
.gitignore bdf2ea13b0 added a new app named analytics for analysis staff 5 年之前
README.md 8d6d46db79 Structure settings and wsgi for development and production environment 5 年之前
client_secrets.json 575b45840a Change the client_secret.json file with mybusiness secret info 5 年之前
manage.py c2f3d7d8c6 Fixes an existance issue 5 年之前
nohup.out db7ad16c10 Add a crontab to send mail in every sunday.. 4 年之前
requirements.txt f020986488 Added new spacy model and change dependent functions, And show staff names in frontend 4 年之前
review_automation.sql 77234acf26 Change some configuration for production server 4 年之前
review_data_set.csv af2df15a27 Update review dataset 5 年之前
signature_care_review_url.json 4893e1a464 Add an utility function that return all bad review 5 年之前

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