Skip to content
ansmPublic

About

BookThisShow

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

13 Commits

Folders and files

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

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages