Code Monkey home page Code Monkey logo

bookticket's Introduction

Open Source Ticket Booking RestAPI

Maintained Made with Python Open Source Love Built with Love Follow Me Telegram

๐Ÿ“’ Index

๐Ÿ”ฐ About

Open Source Rest API for booking theatre tickets.

โšก Usage

Just request the below endpoints and you are good to go.

๐Ÿ”ง Development

python3 -m venv virtual # create a virtual env
source virtua/bin/activate # activate the virtual env
git clone https://github.com/nightwarriorftw/bookTicket.git  # clone the project
cd bookTicket
pip install -r requirements.txt # install requirements
python manage.py makemigrations
python manage.py migrate
python manage.py test # run tests
python manage.py runserver

๐Ÿ”ฐ Insights and Workflow

The client has to create and account using accounts restapi. After creating an account, client will get a token which will used for making api calls further. Client can then book a ticket by selection movie and theatre and entering other details. Cron job is setup that marks ticket expires which are booked 8 hours before the current time. Another cron job is setup which will delete all the tickets expired automatically.

Technologies Used: django, django rest framework, django-knox

โ— Zomentum

This project was made for Zomentum hiring challenge 2021 grads

End points
  • Creating user account accounts/api/v1/register/ [POST]
  • Login accounts/api/v1/login/ [POST]
  • Creating and getting list of theatres book/api/v1/theatre/ [GET, POST]
  • Particular theatre book/api/v1/theatre/<id> [GET, PUT, PATCH, DELETE]
  • Creating and getting list of movies book/api/v1/movie/ [GET, POST]
  • Particular movie book/api/v1/movie/<id> [GET, PUT, PATCH, DELETE]
  • Tickets book/api/v1/booking/ [GET, POST]
  • Particular ticket book/api/v1/booking/<id> [GET, PUT, PATCH, DELETE]
  • Ticket at a particular time book/api/v1/tickets [GET]

๐Ÿ“ท Gallery

Pictures of project.

  • Create and Login User using accounts RestAPI

Login

  • Get list of all the movies

get list of all movies

  • Get list of all the theatres

get list of all the theatres

  • Book ticker using user's name, phone number, timings

book ticket

  • Update the ticket timing (put, patch)

update ticket timing

  • View all tickets for a particualar time

View tickets

  • Delete a particular ticket

delete a particular ticket

  • User details based on ticket id

user details

  • Cron job for marking expired tickets and deleteing them automatically Code

SS

๐ŸŒŸ Credit/Acknowledgment

Credits goes to me

๐Ÿ”’ License

LICENSE

bookticket's People

Contributors

nightwarriorftw avatar

Watchers

 avatar  avatar  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.