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.
- π 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
| 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 |
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
- Java 21 or later
- Maven 3.9+
- MySQL 8.0 (or use Docker)
- Apache Tomcat 11 (or use Docker)
# 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# 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| Variable | Description |
|---|---|
DB_URL |
JDBC connection URL |
DB_USER |
Database username |
DB_PASSWORD |
Database password |
MYSQL_ROOT_PASSWORD |
MySQL root password (Docker only) |
Coming soon β the project is still in development.
- 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
Contributions are welcome! Feel free to open issues or submit pull requests.
This project is open source and available under the MIT License.
Made with β€οΈ by Akshat Sharma