This project is part of my final project for the Data Academy course organised by the Data Afrique Hub. This project is a complete web application for analyzing the sentiment of movie comments. It consists of two parts: the frontend, built with Vue.js (using Vite), and the backend, developed with Django and Django REST Framework.
-
Frontend:
- Responsive user interface to explore movies.
- Listing of movies, integrating data from TMDB.
- User authentication system to allow users to leave comments.
-
Backend:
- API built with Django REST Framework.
- Integration of a sentiment analysis model trained on the IMDB dataset from Kaggle.
- Storage of analyzed comments with their results in a database.
-
Registration and Login:
- Users can create an account and log in to comment on films.
-
Comment Submission:
- When a user submits a comment, it is evaluated by the model to determine whether it is positive or negative.
-
Comment Analysis:
- Comments are stored in the database along with their analysis results.
-
Model Testing:
- Python scripts were used to generate users and comments to test the robustness of the model.
-
Clone the Repository:
git clone https://github.com/Projet12345/My-finaldataacademyproject.git cd My-finaldataacademyproject -
Install the Backend:
- Create and activate a virtual environment:
python -m venv env
source env/bin/activate # On Windows use
env\Scripts\activate - Install dependencies: pip install -r requirements.txt
- Migrate the database: python manage.py makemigrations python manage.py migrate
- Create and activate a virtual environment:
python -m venv env
source env/bin/activate # On Windows use
-
Install the Frontend:
Navigate to the frontend folder. Install dependencies: bash
-
npm install
- Start the development server: bash
npm run dev
-
Run the Backend:
In the backend folder, start the server: bash
- python manage.py runserver
- Frontend: Vue.js, Vite
- Backend: Django, Django REST Framework
- Database: PostgreSQL
- Dataset: IMDB Dataset from Kaggle
- TMDB API
- Frontend: http://localhost:5173/
- API: http://localhost:8000/api/
- API Dcumentation: http://localhost:8000/api/docs/
Authors
- Anderson Nguetoum - Linkedin