GithubHelp home page GithubHelp logo

xaviersavio1978 / cab-booking-system Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vishalshirke7/cab-booking-system

0.0 0.0 0.0 58 KB

REST api for a cab booking system like Uber/ola using django-restframework

Python 100.00%

cab-booking-system's Introduction

Cab-Booking-System

Tech stack used

- python/django/django-restframework
- SQlite 3

#### Installation
####### This is test server
##### clone or download and extract the project directory 
1. Create a virtualenv (better to work in virtualenv)  

a. virtualenv env b. cd env

2. Place the downloaded project inside env

a. cd Cab-Booking-System b. pip install requirements.txt


### Running the APIs. There are two apps in this project (Driver, Passenger)

Base URL :  http:127.0.0.1:8000/api/v1/
 
##### Driver Endpoints  (http:127.0.0.1:8000/api/v1/driver/)
  1. Register a new driver with information - http:127.0.0.1:8000/api/v1/driver/register/
  2. Login using credentials entered during registration - http:127.0.0.1:8000/api/v1/driver/login/
  3. Sending Location of driver - http:127.0.0.1:8000/api/v1/driver/send_location/
  4. Get Travel history - http:127.0.0.1:8000/api/v1/driver/travelhistory/
  5. Logout - http:127.0.0.1:8000/api/v1/driver/logout/
#### NOTE : while signing up with new driver, logout if you are already logged in, same for passenger

##### Passenger Endpoints  (http:127.0.0.1:8000/api/v1/passenger/)
  1. Register a new passenger with information - http:127.0.0.1:8000/api/v1/passenger/register/
  2. Login using credentials entered during registration - http:127.0.0.1:8000/api/v1/passenger/login/
  3. See all available cabs by entering source and destination address - http:127.0.0.1:8000/api/v1/passenger/available_cabs/
  4. Requesting a cab from list of available cabs by entering the car no - http:127.0.0.1:8000/api/v1/passenger/bookcab/
  5. Get Travel history - http:127.0.0.1:8000/api/v1/passenger/travelhistory/
  6. Logout - http:127.0.0.1:8000/api/v1/passenger/logout/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.