Giter Club home page Giter Club logo

movie-booking-site-using-flask's Introduction

movie-booking-using-Flask

This project is Movie-booking Site based on Python Flask using some AWS services such as RDS and Elastic Beanstalk for deployment.

If you clone it or to use it there are some important points to notice and some changes to be made.

The instructions to be followed are:-

  1. Inorder to run this you need to import all the libraries specified in 'requirements.txt' file.
 $ pip install -r requirements.txt
  
 Above command installs all the required libraries to run the project.
  1. Use 'wsgi.py' to run the project instead of 'application.py'.

  2. Network connection is needed in order to run the project.

  3. Html files are in /template folder and CSS & Js files,Images are in /static folder.

  4. We use flask-mail to send mail for otps and booking details , some code must be changed inorder to send mail

    • In 'application.py' change the value of '#sendermail' to sender email address.(line 14,48,104,196)
    • Change the value of '#sendermailpassword' to sender email password.(line 15)
    • The sender must enable 'less secure app access' in their gmail settings inorder to send mail.Click here to enable
  5. We used AWS RDS service for database to our website. So it is preferable if you use your own database in your test as I am not providing any of my details.So inorder to establish database connection there are some changes to be made and some instructions to be followed.

    • First thing to do is if you don't know about AWS RDS Click here to the official documentation

    • Create a Mysql database instance if not exist.Click here to create db instance

    • In 'application.py' file line 20 change the value of 'host=' to your database instance endpoint by replacing '#yourdatabaseinstance' with your endpoint.

    • And also change the values of 'user=' and 'password=' by admin credentials you used while creating database instance.

    • Use database editors such as 'sqlelectron' to edit your database to create and edit your database tables etc.

    • The schemas and data for tables in database are shown as
      Userdata:

       | Field    | Type         | Null | Key  | Default | Extra |
       | :------: | :----------: | :--: | :--: | :-----: | :---: |
       | Name     | char(20)     | YES  |      | NULL    |       |
       | Email    | varchar(30)  | NO   | PRI  | NULL    |       |
       | Phone    | bigint       | YES  |      | NULL    |       |
       | Password | varchar(100) | YES  |      | NULL    |       |       
      

      movies:

       |Field | Type | Null | Key | Default | Extra|
       ----------------------------------------
       Moviename  varchar(30)  YES    NULL  
       Language  char(20)  YES    NULL  
       Description  varchar(5000)  YES    NULL  
       Imdb  float  YES    NULL  
       image  varchar(200)  YES    NULL  
      

      recommended_movies:

       Field  Type  Null  Key  Default  Extra
       ----------------------------------------
       Moviename  varchar(30)  YES    NULL  
       Language  char(20)  YES    NULL  
       Description  varchar(5000)  YES    NULL  
       Imdb  float  YES    NULL  
       image  varchar(200)  YES    NULL  
      

      booking:

       Field  Type  Null  Key  Default  Extra
       ---------------------------------------      
       Name  varchar(30)  YES    NULL  
       Email  varchar(30)  YES    NULL  
       Moviename  varchar(30)  YES    NULL  
       Theatre  varchar(30)  YES    NULL  
       Date  varchar(30)  YES    NULL  
       Timing  varchar(30)  YES    NULL  
       Number  int  YES    NULL  
       Seats  varchar(100)  YES    NULL  
      
  6. We used Fast2sms API for sending otp to phone.There are few changes to be made.

    • Create a Fast2sms account and use your authentication key to send otp from your account.For more information and to use this API Click here.
    • In 'application.py' in line 66 replace '#yourauthorizationkey' with your Fast2sms authorization key.

After changes use ide such as 'Pycharm' for better visualization and interface.

Important thing:-

  1. Create database naming 'users' and create tables in those database.Use 'Sqlelectron' for this. This tool provide you interface to create tables and insert data into it(Create tables as specified schema above).
  2. This project has some functionality limitations and some pages are still in progress, and we are trying hard to fix those things.
  3. To deploy project in Elastic Beanstalk follow the link.
  4. Also see some other references if you can't understand above point.

-------------------------------Thank You------------------------------------

movie-booking-site-using-flask's People

Contributors

dependabot[bot] avatar trinadhreddy1184 avatar

Stargazers

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