This is a simple Java application for an Online Reservation System, developed by Harshal-25c.
This project provides a Basic Implementation of an Online Reservation System that allows users to perform various operations such as Adding, Deleting, and Viewing Reservations. It uses MySQL database for data storage and JDBC for database connectivity.
- User authentication : Users can log in using their
MySQL usernameandMySQL password. CRUDoperations : Users can perform CRUD operations (Create, Read, Update, Delete) on reservations.- Randomly generated PNR numbers for each reservation.
- Easy-to-use command-line interface.
Ensure you have installed These on your system
- Java Development Kit (JDK) : Install JDK.
- MySQL Database : Download MySQL on your system.
- JDBC Driver : Setup JDBC Connecter.
(1). Set up the MySQL database :
- Create a database named 'harshal' (you can change this in the code).
- Import the SQL script provided in the repository to create the necessary table (reservations).
(2). Configure the database connection :
- Open the
Task_1.javafile. - Modify the url , username , and password variables in the main method according to your
MySQL databaseconfiguration.
(3). Compile and run the application :
javac Task_1.java
java Task_1- Run the Application.
- Log in using your MySQL username and password.
Choose an option from the menu :
- Insert Record
- Delete Record
- Show All Records
- Exit
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
- [ Harshal Choudhary ] - [ harshalchoudhary340@gmail.com ].
MIT License
Copyright (c) 2024 Harshal Choudhary
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
