This repository contains the code for a Twitter sentiment analysis application. The application extracts data from the Twitter API, cleans the data, and stores it in a MongoDB Atlas database. Then, a deep learning model is created using LSTM and RMSprop optimizer to perform sentiment analysis on the tweets. Once the model is created, a Docker image is created and uploaded to Docker Hub. The CI/CD pipeline is set up by integrating Jenkins with Docker and Git, and the web application is deployed on Docker. Prerequisites
- Twitter API key
- MongoDB Atlas account
- Docker
- Jenkins
- git clone https://github.com/Akhilesh3796/Sentiment_analysis.git
- Set up your Twitter API key.
- Set up your MongoDB Atlas account and set the connection details.
- Create a Dockerfile.yaml and incorporate all the required dependancies.
- Set up the CI/CD pipeline in Jenkins by following the steps in the Jenkinsfile.
- Build the Docker Image:
- This stage builds the Docker image of the application using the Dockerfile provided in the repository.
- command: docker build -t {image_name} .
- Push Image to the Docker Registry:
- This stage pushes the Docker image to Docker Hub registry using the Docker Hub credentials provided in the Jenkins credential store.
- command: docker push {your-docker-username}/{Docker-image}
- Remove Previous App Container:
- This stage stops and removes any previous instance of the application running on the virtual machine.
- Deploy New App Container on VM:
- This stage deploys the new instance of the application by pulling the Docker image from the registry and running it on the virtual machine.
Akhilesh (@akhilesh3796), Pranshu (@Pranshu1993), Shreyash (@kopz96), Rahul (@T3ch-miNer)
License This project is licensed under the MIT License - see the LICENSE file for details.