|
há 4 anos atrás | |
---|---|---|
analytics | há 4 anos atrás | |
dashboard | há 4 anos atrás | |
facebook_app | há 4 anos atrás | |
gauth | há 4 anos atrás | |
manager | há 4 anos atrás | |
media | há 4 anos atrás | |
name_extractor | há 4 anos atrás | |
nlu_job | há 4 anos atrás | |
review | há 4 anos atrás | |
review_automation | há 4 anos atrás | |
static | há 4 anos atrás | |
static_root | há 5 anos atrás | |
user | há 4 anos atrás | |
yelp | há 4 anos atrás | |
.gitignore | há 4 anos atrás | |
README.md | há 5 anos atrás | |
client_secrets.json | há 5 anos atrás | |
manage.py | há 5 anos atrás | |
requirements.txt | há 4 anos atrás | |
review_automation.sql | há 4 anos atrás |
➜ 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