Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sabarivasan-velayutham/electricitybilling_servletsproject
https://github.com/sabarivasan-velayutham/electricitybilling_servletsproject
Last synced: about 18 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/sabarivasan-velayutham/electricitybilling_servletsproject
- Owner: Sabarivasan-Velayutham
- Created: 2024-04-13T09:20:46.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-05-27T12:18:07.000Z (8 months ago)
- Last Synced: 2024-11-19T00:11:36.608Z (2 months ago)
- Language: Java
- Size: 6.73 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Electricity Management System
This project is a Java-based web application designed to manage electricity usage and billing for users. The application uses servlets to handle user management, billing, and authentication features.
## Features
- **User Management**: Create, read, update, and delete user information.
- **Billing Management**: Check and update the billing status for users.
- **Authentication**: Securely authenticate admin and user roles.
- **Authorization**: Verify admin and user permissions.
- **Database Integration**: Interact with the database to store and retrieve user information.## Technologies Used
- Java Servlets
- JDBC for database interaction
- JWT for authentication
- PostgreSQL as the database
- Apache Tomcat (or another servlet container) for running the application## Installation and Setup
1. **Clone the repository**:
```bash
git clone https://github.com/Sabarivasan-Velayutham/ElectricityBilling_ServletsProject.git
```2. **Navigate to the project directory**:
```bash
cd electricity-management-system
```3. **Configure the database**:
- Ensure that PostgreSQL is installed and running.
- Update the database connection settings in your project configuration.4. **Create the required tables in the database**:
- Connect to your PostgreSQL database and execute the following SQL commands to create the `admininfo` and `userinfo` tables:```sql
CREATE TABLE admininfo (
id SERIAL PRIMARY KEY,
username VARCHAR(255) NOT NULL UNIQUE,
password VARCHAR(255) NOT NULL
);CREATE TABLE userinfo (
id SERIAL PRIMARY KEY,
username VARCHAR(255) NOT NULL UNIQUE,
password VARCHAR(255) NOT NULL,
address VARCHAR(255),
billamount DOUBLE PRECISION,
billstatus VARCHAR(50)
);
```
5. **Deploy the application**:
- Deploy the application to your servlet container (e.g., Apache Tomcat) using your preferred method.6. **Access the application**:
- Visit `http://localhost:8080/electricity/` in your browser to access the application.