|
3 yıl önce | |
---|---|---|
analytics | 4 yıl önce | |
dashboard | 4 yıl önce | |
facebook_app | 4 yıl önce | |
gauth | 4 yıl önce | |
manager | 4 yıl önce | |
media | 4 yıl önce | |
name_extractor | 4 yıl önce | |
nlu_job | 4 yıl önce | |
review | 4 yıl önce | |
review_automation | 4 yıl önce | |
static | 4 yıl önce | |
static_root | 5 yıl önce | |
user | 4 yıl önce | |
yelp | 3 yıl önce | |
.gitignore | 4 yıl önce | |
README.md | 5 yıl önce | |
client_secrets.json | 5 yıl önce | |
manage.py | 5 yıl önce | |
requirements.txt | 4 yıl önce | |
review_automation.sql | 4 yıl önce |
➜ 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