π Contact Manager App
The Contact Manager App is a Java-based web application designed to store and manage contact information efficiently. It uses JSP, Servlets, and JDBC to interact with a MySQL database, providing a simple user interface to perform basic CRUD operations like adding and deleting contacts. This project is ideal for beginners learning Java Web Development and database connectivity.
β¨ Key Features
β Add new contacts with details like Name, Email & Phone Number β View a list of all saved contacts in a structured format β Delete any contact from the database instantly β Real-time database connection using JDBC β Clean and modular code with MVC pattern β Built using standard Java web technologies common in real projects
π§° Tech Stack & Tools Used Technology Purpose Java (JDK 24+) Application logic JSP (Java Server Pages) UI and view rendering Servlets Controllers and request handling JDBC Database connectivity MySQL Data storage Apache Tomcat Web server (e.g. Port 8081) Maven Dependency and build management IntelliJ IDEA / Eclipse Recommended IDE π Database Design
Database Name: contactdb Table Name: contacts
Table Schema CREATE TABLE contacts ( id INT PRIMARY KEY AUTO_INCREMENT, name VARCHAR(100) NOT NULL, email VARCHAR(100) UNIQUE, phone VARCHAR(15) );
This structure ensures each contact is uniquely identifiable and prevents duplicate emails.
ποΈ Project Structure (MVC Pattern) ContactManagerApp/ βββ src/main/java/ β βββ com.app.controller/ (Servlets) β βββ com.app.dao/ (Database operations) β βββ com.app.model/ (Contact class) βββ src/main/webapp/ β βββ views/ (JSP pages) β βββ WEB-INF/ (web.xml, configs) βββ pom.xml
βοΈ How to Setup & Run
Clone this repository:
git clone https://github.com/TarunSingh13/ContactManagerApp.git
Open project in IntelliJ / Eclipse as a Maven project
Configure database in DAO/JDBC file:
String url = "jdbc:mysql://localhost:3306/contactdb"; String user = "root"; String pass = "yourpassword";
Import database using given SQL schema
Add MySQL JDBC driver dependency (already in pom.xml)
Configure Tomcat Server (e.g. v9.0 or later)
Run the project and open in browser:
http://localhost:8081/ContactManagerApp
πΈ UI Screenshots
(Add images once UI is completed)
Add Contact Page
View Contact List Page
Delete Contact Button
π― Future Enhancements
Update Contact feature
Login/Authentication system
Pagination for large contact lists
Search contacts by name/phone
UI improvements using Bootstrap
π€ Contributing
Contributions are welcome! Feel free to fork the repository and submit a pull request to enhance features or fix bugs.
π‘ License
This project is open-source and available under the MIT License.
If you want, I can also: β¨ Add logo + badges in the README β¨ Create better UI pages using Bootstrap β¨ Host it on Render / Railway for a live demo β¨ Add edit/update functionality