Skip to content

DiFronzo/OSN-analysis-dashboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OSN Analysis Dashboard logo of the project

Twitter Sentiment Analysis Dashboard using #tag, words and username.

OSN-A-D version python version react version flask version license code size GitHub Workflow Status

How to run the project?

Local (Development)

Backend

  1. Clone or download this repository to your local machine.
  2. Install all the libraries mentioned in the requirements.txt file with the command pip3 install -r backend/requirements.txt
  3. Create a file name config.ini in backend folder
  4. Paste the code in config.ini and insert key details which you will get keys here developer.twitter.com
[twitter]

api_key = Your Keys
api_key_secret = Your Keys
  1. $ python backend/app.py
  2. Visit http://127.0.0.1:5000/docs

Frondend

  1. Install Node JS
  2. $ cd frondend
  3. $ yarn install
  4. $ npm start
  5. Visit http://localhost:3000

🐳 Docker and Docker Compose (Production)

We will use Docker Compose to manage the instance of web, cache (Radis), and API with the docker-compose.yaml file.

  1. Clone or download this repository to your local machine.
  2. Create a file name config.ini in backend folder
  3. Paste the code in config.ini and insert key details which you will get keys here developer.twitter.com
[twitter]

api_key = Your Keys
api_key_secret = Your Keys

cd into the top folder, and make a copy of .env_example to .env

$ cp .env_example .env

We can start the application with just one simple command:

$ docker-compose up

or run it in the background with this command, adding -d for detached mode

$ docker-compose up -d

And stop the application service running with

$ docker-compose down

About

Twitter Sentiment Analysis Dashboard using #tag, words and username.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •