Skip to content

Railway Ticket Backend is a Java Spring Boot-based backend system designed for managing railway ticket sales, routes, coaches, and seat reservations. It features JWT-based authentication, RESTful APIs, and integrates with a PostgreSQL database for efficient operations

Notifications You must be signed in to change notification settings

shahob-atm/railway_ticket_backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

28 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Railway Ticket Backend

This project is a backend application built with Java Spring Boot for managing and selling railway tickets.

πŸ›  Technologies Used

  • Java 17
  • Spring Boot
  • Spring Security (with JWT)
  • Maven
  • REST API
  • PostgreSQL (assumed from application.properties)

πŸ“ Project Structure

src/
└── main/
    β”œβ”€β”€ java/com/example/railway_ticket_backend/
    β”‚   β”œβ”€β”€ controller/         # REST API controllers
    β”‚   β”œβ”€β”€ service/            # Business logic layer
    β”‚   β”œβ”€β”€ entity/             # JPA entities
    β”‚   β”œβ”€β”€ repository/         # Spring Data JPA repositories
    β”‚   β”œβ”€β”€ dto/                # Data transfer objects
    β”‚   β”œβ”€β”€ projection/         # Projections for custom queries
    β”‚   β”œβ”€β”€ config/             # JWT and other configurations
    β”‚   └── RailwayTicketBackendApplication.java # Entry point
    └── resources/
        └── application.properties

πŸ” Authentication

  • JWT is used for user authentication.
  • AuthController provides login and registration endpoints.

πŸ“¦ API Modules

  • AuthController – user login and registration
  • CoachController – manage coaches
  • StationController – manage stations
  • TicketController – ticket purchase and retrieval
  • TripController – routes and trips
  • TripSeatController – seat selection and management

πŸš€ Getting Started

  1. Clone the repository:

    git clone <repo-url>
    cd railway_ticket_backend
  2. Configure your database settings in application.properties.

  3. Run the application:

    ./mvnw spring-boot:run

πŸ“Œ Notes

  • This project includes only the backend services.
  • The frontend part is assumed to be a separate module.

About

Railway Ticket Backend is a Java Spring Boot-based backend system designed for managing railway ticket sales, routes, coaches, and seat reservations. It features JWT-based authentication, RESTful APIs, and integrates with a PostgreSQL database for efficient operations

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages