Skip to content

ansm/bts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Book This Show (API Sets)

API Documentation

Complete API Documentation available here

Installation

Pre-Requisites

BookThisShow requires Python3 to run

  • Python 3.6 or greater

Steps

For Ubuntu Linux >= 16

Install the dependencies and devDependencies

$ sudo apt install python3-pip git
$ pip3 install virtualenv
$ cd ~; mkdir bookthisshow; cd bookthisshow
$ virtualenv -p python3 bts_env
$ source bts_env/bin/activate
$ git clone https://github.com/ansm/bts.git
$ cd bts
$ pip3 install -r requirement.txt

Migrate database & Start server (port 8000)

$ python manage.py migrate
$ python manage.py cities_light
$ python manage.py createsuperuser
$ python manage.py test
$ python manage.py runserver 0.0.0.0:8000

Tech Stack

Libraries

Database

  • SQLite (A light weight DB)
    • To store data generated on BTS

WSGI HTTP Server

  • Gunicorn (A Python WSGI HTTP Server for UNIX)

Web Server

  • Nginx (High performance LB & Web Serer/Reverse proxy server)

Stack Architecture /Process Flow

Process FLow

Flow charts [APIs]

Book the show (/api/show/book)

graph TD
A((User)) -- Booking request --> B[Check if request seat availalble ]
B -- If seats available --> C(Book seats)
B -- If seats not available --> D(Cancel booking request)
D -- Respond with unavalability of seat --> A
C -- Send booking confirmation with ID --> A
Loading

About

BookThisShow

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages