|
hace 4 años | |
---|---|---|
analytics | hace 4 años | |
dashboard | hace 4 años | |
facebook_app | hace 4 años | |
gauth | hace 4 años | |
name_extractor | hace 4 años | |
nlu_job | hace 4 años | |
review | hace 4 años | |
review_automation | hace 4 años | |
static | hace 4 años | |
static_root | hace 5 años | |
user | hace 4 años | |
yelp | hace 4 años | |
.gitignore | hace 5 años | |
README.md | hace 5 años | |
client_secrets.json | hace 5 años | |
manage.py | hace 5 años | |
nohup.out | hace 4 años | |
requirements.txt | hace 4 años | |
review_automation.sql | hace 4 años | |
review_data_set.csv | hace 5 años | |
signature_care_review_url.json | hace 5 años |
➜ git clone http://bytetrek.com:30000/ByteTrek-Projects/review-automation-backend.git
➜ python3 -m venv env
➜ source env/bin/activate
(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;
(env) ➜ python manage.py runserver --settings=review_automation.settings.dev
(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
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