How rbsuhail/easybook works
Project type and purpose
• From the README and file tree, this is a standalone backend service (no dedicated frontend code) for managing reservations (tickets/trains in code, books in README) with basic CLI or API entrypoint. It implements user authentication, listing/search, reservation logic, and an admin interface (presumably via the same service or CLI).
File structure
• Top-level:
• app/src/main/java/ticket/booking/App.java – the application entrypoint
• entities/ – domain objects (User, Train, Ticket)
• service/ – business logic (TrainService, UserBookingService)
• localDB/ – JSON files acting as the data store
• util/ – helper routines
• Tests mirror the main structure under app/src/test.
• Gradle config and wrapper at project root.
README for additional insights
• Lists core features: authentication, listing, search, reservation, admin panel.
• Tech stack: Java + Gradle.
• No external services declared; data is persisted as JSON in localDB.
Detailed capture of essential elements
• Don’t just group everything as “backend”; show each service and its dependency on the JSON files.