How Can We Build a Java Airline Reservation System with Database Sync?
Asked by
!65W adapter
We're working on a project to create an airline reservation system in Java that involves a database for CRUD operations. I'm in a group of three; two of us are using Windows and I'm on Arch Linux. My initial plan was to use Gradle and push the project to GitHub, but now we need to figure out how to incorporate and sync the database as well for submission. Also, I'm not exactly sure how an airline reservation system worksโis it just about letting users enter their information and book tickets, or do we also need flight options, ticket IDs, and customer details? Any guidance would be appreciated!
Answers
It's important to define what information each entity will need before jumping into development. Check out what fields other flight booking websites haveโthings like name, email, phone number, and ID are fundamental for tracking customers. For the database, options like SQLite or MySQL server are reliable. If youโre unsure, there are plenty of tutorials online, and I'm here if you need help!
Reply to this answer
A good way to manage your database would be to use a file-based database like SQLite, especially since itโs lightweight and doesnโt require much setup. Alternatively, you could set up a Docker container with your preferred local database. This way, everyone can easily access the same database structure and keep things in sync.
Reply to this answer
Instead of using a file-based database, which can get cluttered with unnecessary test data, I suggest creating an SQL script that sets up an empty database with the necessary tables. You can push this script to GitHub, and your team can run it to set up their local databases. If the design changes, you just update the script and inform your team!
Reply to this answer
To understand how airline reservations work, just go to any airline's website and try to book a ticket. Itโll give you a real feel for what features and data you should include in your app.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions