Skip to content

TarunSingh13/ContactManagerApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“‡ 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

About

A simple Java web application built using JSP, Servlets, and JDBC to manage contacts. Users can add, view, and delete contacts stored in a MySQL database.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors