Skip to content

Akshatsharma2205/PolicyTrack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›‘οΈ PolicyTrack β€” Insurance Policy Management System

A full-stack web application for insurance agents to manage customers, track policies, and handle premium-related workflows. Built with Java EE (Jakarta Servlet + JSP) and MySQL.

🚧 This project is under active development. Some features are still being built.


✨ Features

  • πŸ” Secure Authentication β€” BCrypt password hashing with session-based login
  • πŸ‘₯ Customer Management β€” Add, search, and manage customer records with KYC details
  • πŸ“‹ Policy Management β€” Create and track insurance policies for customers
  • πŸ“Š Agent Dashboard β€” Overview of key metrics and recent activity
  • πŸ”” Notifications β€” Stay updated on important policy events
  • 🎨 Modern UI β€” Responsive design with smooth animations and a clean interface
  • 🐳 Docker Ready β€” One-command deployment with Docker Compose

πŸ› οΈ Tech Stack

Layer Technology
Backend Java 21, Jakarta Servlet 6.0, JSP
Database MySQL 8.0
Connection Pool HikariCP
Security BCrypt (jBCrypt)
Build Tool Maven
Server Apache Tomcat 11
Containerization Docker, Docker Compose

πŸ“ Project Structure

PolicyTrack/
β”œβ”€β”€ src/main/
β”‚   β”œβ”€β”€ java/com/policytrack/
β”‚   β”‚   β”œβ”€β”€ config/          # Database configuration (HikariCP)
β”‚   β”‚   β”œβ”€β”€ dao/             # Data Access Objects
β”‚   β”‚   β”œβ”€β”€ filter/          # Authentication filter
β”‚   β”‚   β”œβ”€β”€ model/           # Entity classes
β”‚   β”‚   β”œβ”€β”€ service/         # Business logic
β”‚   β”‚   β”œβ”€β”€ servlet/         # HTTP request handlers
β”‚   β”‚   └── util/            # Utility classes (password hashing)
β”‚   └── webapp/
β”‚       β”œβ”€β”€ WEB-INF/         # Web app configuration
β”‚       β”œβ”€β”€ includes/        # Reusable JSP components
β”‚       β”œβ”€β”€ index.jsp        # Login page
β”‚       β”œβ”€β”€ agent-dashboard.jsp
β”‚       β”œβ”€β”€ add-customer.jsp
β”‚       β”œβ”€β”€ search-customer.jsp
β”‚       β”œβ”€β”€ add-policy.jsp
β”‚       └── notifications.jsp
β”œβ”€β”€ database/                # SQL schema scripts
β”œβ”€β”€ Dockerfile               # Multi-stage Docker build
β”œβ”€β”€ docker-compose.yml       # Full stack deployment
└── pom.xml                  # Maven dependencies

πŸš€ Getting Started

Prerequisites

  • Java 21 or later
  • Maven 3.9+
  • MySQL 8.0 (or use Docker)
  • Apache Tomcat 11 (or use Docker)

Option 1: Run with Docker (Recommended)

# 1. Clone the repository
git clone https://github.com/Akshatsharma2205/PolicyTrack.git
cd PolicyTrack

# 2. Create your .env file from the template
cp .env.example .env
# Edit .env and set your passwords

# 3. Start the application
docker-compose up -d

# 4. Open in browser
# http://localhost:8080

Option 2: Run Locally

# 1. Clone the repository
git clone https://github.com/Akshatsharma2205/PolicyTrack.git
cd PolicyTrack

# 2. Set up MySQL database
#    Create a database and run the SQL scripts from the database/ folder

# 3. Set environment variables
export DB_URL=jdbc:mysql://localhost:3306/policytrack
export DB_USER=your_db_user
export DB_PASSWORD=your_db_password

# 4. Build the WAR file
mvn clean package

# 5. Deploy the WAR file to Tomcat's webapps directory

βš™οΈ Environment Variables

Variable Description
DB_URL JDBC connection URL
DB_USER Database username
DB_PASSWORD Database password
MYSQL_ROOT_PASSWORD MySQL root password (Docker only)

πŸ“Έ Screenshots

Coming soon β€” the project is still in development.


πŸ—ΊοΈ Roadmap

  • Agent authentication (login/logout)
  • Agent dashboard
  • Add & search customers
  • Add policies
  • Notifications page
  • Edit/Delete customers
  • Policy renewal tracking
  • Premium payment history
  • Report generation
  • Admin panel

🀝 Contributing

Contributions are welcome! Feel free to open issues or submit pull requests.


πŸ“„ License

This project is open source and available under the MIT License.


Made with ❀️ by Akshat Sharma

About

πŸ›‘οΈ Insurance Policy Management System β€” Manage customers, track policies, and handle premiums. Built with Java EE (Jakarta Servlet + JSP), MySQL, and Docker.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors