{"id":25161143,"url":"https://github.com/omgupta12/ticket-booking","last_synced_at":"2026-04-11T13:07:15.373Z","repository":{"id":270407416,"uuid":"910289691","full_name":"Omgupta12/Ticket-Booking","owner":"Omgupta12","description":"A train seat reservation application with user authentication, dynamic seat booking, and management features. Built using Next.js, Node.js, Express.js, and PostgreSQL, this project follows best practices in web development and provides a seamless user experience for reserving train seats.","archived":false,"fork":false,"pushed_at":"2025-01-01T12:15:27.000Z","size":88,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T02:18:13.929Z","etag":null,"topics":["bcrypt","expreesjs","jwt-authentication","nextjs","nodejs","postgresql","tailwindcss"],"latest_commit_sha":null,"homepage":"https://seat-booking-frontend-rpi7.vercel.app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Omgupta12.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-30T22:30:01.000Z","updated_at":"2025-01-01T12:16:57.000Z","dependencies_parsed_at":"2024-12-30T23:25:33.915Z","dependency_job_id":"5427ea6b-d236-479a-aa0f-7114e9aeec30","html_url":"https://github.com/Omgupta12/Ticket-Booking","commit_stats":null,"previous_names":["omgupta12/ticket-booking"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Omgupta12%2FTicket-Booking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Omgupta12%2FTicket-Booking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Omgupta12%2FTicket-Booking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Omgupta12%2FTicket-Booking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Omgupta12","download_url":"https://codeload.github.com/Omgupta12/Ticket-Booking/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247006667,"owners_count":20868033,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bcrypt","expreesjs","jwt-authentication","nextjs","nodejs","postgresql","tailwindcss"],"created_at":"2025-02-09T02:18:16.067Z","updated_at":"2025-12-30T23:09:24.320Z","avatar_url":"https://github.com/Omgupta12.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Train Seat Reservation System\n\n## Project Demo\n- Live Application:- https://seat-booking-frontend-rpi7.vercel.app\n- Video Presentation:- https://drive.google.com/file/d/1JC1PKEJYtqN5haBw6N3NH_WGWqLctpdL/view?usp=sharing\n\n## About the Project\nThis application allows users to reserve train seats with specific constraints:\n- The train has **80 seats**, arranged as **7 seats per row** with the last row having **3 seats**.\n- Users can reserve up to **7 seats in one booking**, prioritizing booking in a single row.\n- Seats are assigned nearby if a single row is unavailable.\n- **User authentication** is required for seat booking.\n- Booked seats are locked and cannot be reserved by others unless canceled.\n\n---\n\n## Tech Stack\n### Frontend\n- [Next.js](https://nextjs.org/)\n- [Tailwind Css](https://tailwindui.com/)\n\n### Backend\n- [Node.js](https://nodejs.org/)\n- [Express.js](https://expressjs.com/)\n\n### Database\n- [PostgreSQL](https://www.postgresql.org/)\n\n### Deployment\n- Frontend - Vercel\n- Backend - Render\n\n---\n\n## Features\n- **User Authentication**: Sign Up/Login functionality.\n- **Responsive Design**: Optimized for various devices.\n- **Dynamic Routing**: Utilizes Next.js file-based routing.\n- **Error Handling**: Proper validation and error responses.\n- **Secure Bookings**: Seat locks to avoid duplicate reservations.\n- **Administrative Features**: Reset seat bookings.\n- **Deployment-Ready**: Compatible with cloud platforms.\n\n---\n\n## Installation\n### Prerequisites\n- [Node.js](https://nodejs.org/) installed.\n- [PostgreSQL](https://www.postgresql.org/) installed and running.\n\n### Frontend Steps\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/your-username/Ticket-Booking.git\n   cd Ticket-Booking\n   cd frontend\n2. Install dependencies:\n   ```bash\n   npm install\n3. Start the application:\n   ```bash\n    npm run dev\n   \n### Backend Steps\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/your-username/Ticket-Booking.git\n   cd Ticket-Booking\n   cd backend\n2. Install dependencies:\n   ```bash\n   npm install\n3. Start the application:\n   ```bash\n   node server.js\n   \n## Screenshots\n\n### Login Page\n![Login-Page](https://github.com/user-attachments/assets/0e2c3654-031d-4107-9944-4f1610f1333d)\n\n### Signup Page\n![Booking Page](https://github.com/user-attachments/assets/1ad41039-3c7d-47ed-9711-a82d7182f659)\n\n\n### Booking Page\n![Booking Page](https://github.com/user-attachments/assets/4ceb5f1a-cf78-4368-bebe-f11f5365c384)\n\n\n## API Endpoints\n- https://seatbooking-backend-tsp2.onrender.com/api/auth/login - Login\n- https://seatbooking-backend-tsp2.onrender.com/api/auth/signup - Signup\n- https://seatbooking-backend-tsp2.onrender.com/api/seats - Get all seats\n- https://seatbooking-backend-tsp2.onrender.com/api/seats/reset - Reset all bookings\n- https://seatbooking-backend-tsp2.onrender.com/api/seats/book - Booking seats\n\n\n## Best Practices Followed\n- Validation: Input sanitization and validation.\n- Error Handling: Graceful responses for edge cases.\n- Security: Use of JWT, bcrypt, etc.\n- Code Quality: Linting and adherence to coding standards.\n- Modularity: Clean, reusable components and modules\n\n## Contact\n### Project Owner\n- Portfolio: https://omgupta12.github.io/\n- Email: omprakash1997242@gmail.com\n   \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomgupta12%2Fticket-booking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomgupta12%2Fticket-booking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomgupta12%2Fticket-booking/lists"}