Twitter Sentiment Analysis Dashboard using #tag, words and username.
- Clone or download this repository to your local machine.
- Install all the libraries mentioned in the requirements.txt file with the command
pip3 install -r backend/requirements.txt
- Create a file name
config.ini
in backend folder - 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
$ python backend/app.py
- Visit http://127.0.0.1:5000/docs
- Install Node JS
$ cd frondend
$ yarn install
$ npm start
- Visit http://localhost:3000
We will use Docker Compose to manage the instance of web, cache (Radis), and API with the docker-compose.yaml
file.
- Clone or download this repository to your local machine.
- Create a file name
config.ini
in backend folder - 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
- Backend: Visit http://localhost:5000/docs
- Frontend: Visit http://localhost:3000