Login_Module

Login Module

This repository contains a simple Login and Registration module developed using JSP, Servlets, HTML, CSS, MySQL, and Java. It allows users to register, log in, and maintain session management for authentication purposes.

Screenshots

Login Page Registration Page
Login Screenshot Registration Screenshot

Features

Tech Stack

Prerequisites

Before you begin, ensure you have met the following requirements:

Getting Started

Follow these instructions to set up and run the project on your local machine.

1. Clone the repository

git clone https://github.com/Venumadhavmule/Login_Module.git
cd login-module

2. Set up MySQL Database

CREATE DATABASE login_db;

USE login_db;

CREATE TABLE members (
    id INT NOT NULL AUTO_INCREMENT,
    firstname VARCHAR(50),
    lastname VARCHAR(50),
    email VARCHAR(100),
    username VARCHAR(50) NOT NULL,
    password VARCHAR(255) NOT NULL,
    PRIMARY KEY (id)
);

3. Configure Database Connection

Update the database connection details in the file: src/com/db/DBConnection.java

private static final String URL = "jdbc:mysql://localhost:3306/login_db";
private static final String USER = "your_mysql_username";
private static final String PASSWORD = "your_mysql_password";

4. Deploy on Apache Tomcat

http://localhost:8080/login-module/

5. Register and Login

Project Structure

login-module/
│
├── src/
│   ├── com/
│   │   ├── controller/
│   │   │   ├── Login.java
│   │   │   ├── Logout.java
│   │   │   ├── Register.java
│   │   │
│   │   ├── dao/
│   │   │   ├── LoginDao.java
│   │   │   └── RegistDao.java
│   │   │
│   │   ├── model/
│   │   │   └── Member.java
│   │   │
│   │   └── db/
│   │       └── DBConnection.java
│   │
├── webapp/
│   ├── META-INF/
│   ├── WEB-INF/
│   │   └── web.xml
│   ├── Register.html
│   ├── Register.jsp
│   ├── login.jsp
│   ├── welcome.jsp
│   ├── aboutus.jsp
│   ├── videos.jsp
│   └── css/
│       ├── logStyle.css
│       └── regStyle.css
│
└── README.md