IRCTC FastAPI Project Setup Clone the repository. Install dependencies: pip install -r requirements.txt. Set up the MySQL database and update the .env file with your database credentials. Run the application: uvicorn app.main:app --reload. API Endpoints POST /register: Register a regular user. POST /register/admin: Register an admin user (protected by admin API key). POST /login: Login and get an access token. POST /trains: Add a new train (Admin only). PUT /trains/{train_id}/seats: Update train seats (Admin only). GET /trains: Get all trains between two stations. POST /book: Book a seat on a train. GET /bookings/{booking_id}: Get specific booking details.