This is a Java web application built using Eclipse, Servlets, JSP, and MySQL. The system allows managing user profiles, financial data, device usage, social media activity, and lifestyle data. It also provides product recommendations based on user data.
- User Management: Create, update, delete, and view user information.
- Device Tracking: Store user device preferences and internet usage.
- Social Media Analytics: Track social media engagement and fatigue levels.
- Entertainment Usage: Monitor video, gaming, and music consumption.
- Lifestyle Tracking: Record sleep, reading, and physical activity data.
- Product Recommendations: Provide personalized recommendations based on user data.
- Backend: Java, Servlets, JSP
- Frontend: HTML, CSS, JSTL
- Database: MySQL
- Tools: Eclipse, Apache Tomcat, JDBC
- Version Control: Git & GitHub
- Java 8+
- Apache Tomcat 9+
- MySQL Database
- Eclipse IDE (with EE support)
git clone https://github.com/yourusername/your-repo.git
cd your-repo-
Create a MySQL database:
CREATE DATABASE name_you_want;
-
Import the schema: Import the schema.sql file into your database.
-
Update
ConnectionManager.javawith your database credentials.
- Open Eclipse and import the project.
- Right-click the project → Properties → Targeted Runtimes → Select Apache Tomcat.
- Ensure set up impl and spec 1.2.5 jar files.
- Ensure
web.xmlis properly configured. - Start Tomcat and deploy the application.
- Access the application at:
http://localhost:8080/Project - Navigate to different pages for user management, analytics, and recommendations.
| Endpoint | Method | Description |
|---|---|---|
/users |
GET |
View all users |
/users |
POST |
Add a new user |
/devices |
GET |
View user devices |
/socialmedia |
GET |
View social media usage |
/entertainment |
GET |
View entertainment data |
/lifestyle |
GET |
View lifestyle habits |
/recommendations |
GET |
Get product recommendations |
- Fork the repository.
- Create a new branch (
feature-branch). - Commit your changes (
git commit -m "Add new feature"). - Push to the branch (
git push origin feature-branch). - Submit a pull request.
This project is licensed under the MIT License.