Giter Club home page Giter Club logo

kinos's Introduction

KINOS

My first web application was typed in HTML/Twig, partly JavaScript (front-end) and PHP (back-end). This application was made in collaboration with Kacper Jabłoński and Maksymilian Dziadoń (we were all developing front-end and back-end but I have created the database). The project was done as part of the coursework for module Bazy danych (eng. Databases) during the 5th term of ICT studies (AGH, Kraków, Poland).

Overview

This is a web application that allows to purchase cinema tickets. Application has been secured against buying the same seats by different users and attacks such as SQL injection or XSS. The description below presents the features of the application.

Main page and contact

main-and-contact

The main page features movie posters that are changing periodically. Once you click on a movie poster, you will be taken to a new page displaying the movie’s details. Additionally, on the Kontakt (eng. contact) tab you can find contact form, the company information and a map.

Repertoire

repertoire

On the Repertuar (eng. repertoire) tab you can see currently played movies. This subpage has a search engine that filters movies based on the title (or its part), genre and age restrictions (e.g. when you want to display only children movies). Additionally, you can choose a sorting criterion. As a default, the page displays all movies that are currently being shown in the cinema. When movies are no longer played, they are automatically removed from the page.

Registration, login and my account

register-login-profile

Registration isn't required to purchase tickets. However, having an account makes the payment process easier, as customer data is filled in automatically. On Moje konto (eng. my account) tab you have access to your purchase history, and you can change your personal data, password or delete the account.

Tickets booking

tickets-booking

To purchase tickets, go to the chosen movie's tab and select the screening by clicking on Rezerwuj bilet (eng. book ticket) button. You can purchase tickets 30 minutes before the screening at the latest and up to 7 days ahead. Next, you choose seats (if they are unoccupied) and then click on Dodaj do koszyka (eng. add to cart) button. Additionally, you can add to the cart a lot of tickets for various movies and screenings. In the last step, you have to give personal data, choose a way of delivery and payment, solve reCAPTCHA and... DONE! Your tickets have been booked.

How to launch app

  • Download repository

  • Install AMPPS (or other package containing Apache module and MySQL database)

  • Launch database interface phpMyAdmin and sign in

    • login: root
    • password: mysql
  • Create a new database named kinos and import database dump which is available in this repository

  • Make AMPPS www catalog empty and then copy there the content of www catalog from this repository

  • Go to the web page by typing in a browser: localhost, 127.0.0.1 or your PC's IP address

  • WARNING: Probably neither movie nor screening won't be available now so you can add new movies and screenings to database or edit SQL queries in the code.

kinos's People

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.