项目作者: rbandooni

项目描述 :
Keyword and Image Analyzer
高级语言: HTML
项目地址: git://github.com/rbandooni/analyzr.git
创建时间: 2019-01-13T03:02:30Z
项目社区:https://github.com/rbandooni/analyzr

开源协议:GNU General Public License v3.0

下载


Introduction

Analyzr is a web-based application to analyze twitter keywords, images and tweet reports.

How to run

Install python pip, virtualenv and nginx

  1. sudo apt-get install python-pip virtualenv nginx -y

Change directory to project folder

  1. cd analyzr/

Activate virtual environment

  1. virtualenv myenv
  2. source myenv/bin/activate

Install the dependencies via requirements.txt file and

  1. sudo pip install -r requirements.txt
  2. sudo pip install flask gunicorn

To run locally

  1. gunicorn --bind 0.0.0.0:8000 wsgi:app

To run over nginx

Follow the following commands
  1. sudo vi /etc/nginx/sites-available/flask
Copy this onto the opened file
  1. server {
  2. listen 80;
  3. location / {
  4. includeproxy_params;
  5. proxy_pass http://127.0.0.1:8000
  6. }
  7. }
  1. sudo vi /etc/systemd/system/app.service
Add the following code
  1. [Unit]
  2. Description=Gunicorn instance to serve cs6030Project
  3. After=network.target
  4. [Service]
  5. User=ubuntu
  6. Group=www-data
  7. WorkingDirectory=/home/ubuntu/cs6030Project
  8. Environment="PATH=/home/ubuntu/cs6030Project/myenv/bin"
  9. ExecStart=/home/ubuntu/.local/bin/gunicorn -workers 3 --bind unix$
  10. [Install]
  11. WantedBy=multi-user.target
Start and enable our app configuration
  1. sudo systemctl start app
  2. sudo systemctl enable app
  3. sudo ln -s /etc/nginx/sites-available/flask /etc/nginx/sites-enabled/flask
  4. sudo /etc/init.d/nginx restart

Technologies Used

  • Bootstrap
  • jQuery
  • Google Charts
  • HTML5 and CSS3
  • Flask with gunicorn and NGINX
  • EC2
  • FireBase
  • Simple Storage Service (S3)
  • Google FireBase
  • CloudWatch
  • Twitter Streaming API
  • Google Data Studio
  • Google Cloud Vision
  • Kairos Facial Recognition
  • Elastic Load Balancer (ELB)
  • AWS AutoScaling
  • Identity and Access Management (IAM)• CloudFormation
  • Elastic Block Storage (EBS)
  • Google Analytics

Developer

  • Rohit Bandooni