This is the robust backend engine for the Bus Ticket Booking System. It manages the database, user authentication, and ticket booking logic, serving data via a RESTful API to the React frontend.
- Frontend UI: React-Frontend-BusTicketBooking-System
- RESTful API: Endpoints for bus schedules, seat availability, and ticket bookings.
- Database Management: Optimized models for Buses, Routes, Seats, and Users.
- Authentication: Secure user login and registration using JWT or Token-based authentication.
- Booking Logic: Prevents double-booking through server-side validation.
- Admin Dashboard: Full CRUD interface for managing buses, routes, and viewing ticket sales.
- Language: Python 3.x
- Framework: Django & Django REST Framework (DRF)
- Database: SQLite (Development) / PostgreSQL (Production)
- CORS Handling: django-cors-headers for seamless React integration.
- Python installed on your machine.
- Virtualenv library (pip install virtualenv).
- Clone the repository:
git clone [https://github.com/himateja27/Django-Backend-BusTicketBooking-System.git](https://github.com/himateja27/Django-Backend-BusTicketBooking-System.git)
2.Create and activate a Virtual Environment :
python -m venv venv
.\venv\Scripts\activate
source venv/bin/activate
3.Install dependencies : pip install -r requirements.txt
4.Apply migrations & start server: python manage.py makemigrations python manage.py migrate python manage.py runserver
👤 Author V Hima Teja Python Full Stack Developer Developed with ❤️ as part of a Python Full Stack Project.
- requirements.txt: Ensure you have generated this file in your backend folder by running pip freeze > requirements.txt. This allows others to install your dependencies easily.
- CORS Settings: In your settings.py, make sure your CORS_ALLOWED_ORIGINS includes your Vercel URL so the React app can talk to the Django app.
- Link them up: Now that you have both READMEs, anyone visiting your backend can easily find the frontend, and vice-versa.
Since you're a Full Stack Developer, would you like me to help you create a custom "Profile README" that shows off your Python and React skills on your main profile page?