GithubHelp home page GithubHelp logo

guts_test's Introduction

Theater Seating Algorithm / API

Live demo

You can test live demo here: Theater Seating Algorithm / API

How to run

  1. Clone the project
  2. Open terminal and create a virtual environment:
    virtualenv venv
  3. Activate virtual environment:
    source venv/bin/activate
  4. Install packages:
    pip install -r requirements.txt
  5. Migrate and create database:
    python manage.py migrate
  6. Run server:
    python manage.py runserver
  7. You can run tests:
    python manage.py test
  8. Open the browser and browse this URL:
    127.0.0.1:8000

Quickstart

  1. Create a section
  2. Create seats in the section
  3. Create customers
  4. Seat customers

OR

Click on Quickstart button on the navbar to create a section with 3 rows and 8 seats in every row.

Reseting

You can delete all Sections and all Customers by browsing to reset section. The reset section can be found in the navbar items.

Api

API links can be found on the navbar.

Sections Retrieve (GET request):


URL: /api/retrieve-sections/

Seats Retrieve (POST request):


URL: /api/retrieve-seats/
Data load sample: { "section_id":1 }

Ticket wallet api (POST request):


URL: /api/retrieve-single-seat/
Data load sample: { "customer_name":"Amin" }

Seat customers api (POST request):


URL: /api/bulk-seating/
Data load sample: { "section_id":1, "customer_list":[ [ "A", "aisle", "3" ], [ "B", "", "3" ] ] }

guts_test's People

Contributors

aminbahrabadi avatar

Watchers

 avatar

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.