8000 GitHub - tarun2599/bus-reservation
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tarun2599/bus-reservation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bus Reservation System API

A Django REST API for managing bus reservations. This system allows users to search for buses based on source, destination, and date, make seat reservations, and view their booking history.

Features

  • Search buses based on source, destination, and date
  • Seat reservation system
  • View reservation history
  • Swagger API documentation

Tech Stack

  • Python 3.10
  • Django 4.2.7
  • Django REST Framework 3.14
  • SQLite Database
  • drf-yasg for API documentation

Installation

1. Clone the repository

git clone https://github.com/tarun2599/bus-reservation.git
cd bus-reservation

2. Create and activate virtual environment

python -m venv newtonschool
source newtonschool/bin/activate  # On Windows: newtonschool\Scripts\activate

3. Install dependencies

pip install -r requirements.txt

4. Apply database migrations

python manage.py makemigrations
python manage.py migrate

5. Load sample bus data

python manage.py loaddata bus_reservation/fixtures/bus_data.json

6. Run development server

python manage.py runserver

7. Api Documentation

API documentation is available via Swagger UI at:

Swagger UI: http://localhost:8000/swagger/

8. Postman Collection

You can download the Postman collection to test the API endpoints.

Download Postman Collection

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0