Code Monkey home page Code Monkey logo

cinema-service's Introduction

Cinema-Service

Table of contents

General info

Cinema service App is a web-app, built based on SOLID principles using Hibernate, Spring frameworks.

You can test this application just following the link https://cinema-service-hordenin.herokuapp.com/ or go through Installation.

Features:

  • Support registration(POST:/register), authentication(/login), authorization and logout(/logout) processes
  • Get all cinema halls (GET: /cinema-halls) or add cinema hall (POST: /cinema-halls)
  • Get all movies (GET: /movies) or add movie (POST: /movies)
  • Get all available movie sessions (/movie-sessions/available?movieId&date), add(/movie-sessions), delete or update movie session by id (/movie-sessions/{id})
  • Add movie session to shopping cart (PUT: /shopping-carts/movie-sessions?movieSessionId) and get shopping cart by user (GET: /shopping-carts/by-user)
  • Complete order (POST: /orders/complete) and get orders history for user (GET: /orders)
  • Get user by email (GET: /users/by-email?email)

You can send POST requests from Postman

Technologies:

  • Java (JDK version 11)
  • MySQL database
  • Tomcat - web-server (version 9.0.54)
  • Hibernate
  • Spring (Spring Core, Spring Security, Spring Web)
  • JSON
  • Maven (version 3.6.3)

Installation:

  1. Install MySQL or other RDBMS (you need to create schema)
  2. Install Tomcat (version 9.0.54)
  3. Fork this project to your repository and clone to your IDE
  4. Open db.properties file by path src/main/resources. Here you can configure your JDBC connection and hibernate by editing next fields:
#MySQL properties
db.driver=YOUR_DRIVER
db.url=YOUR_DATABASE_URL
db.user=YOUR_USERNAME
db.password=YOUR_PASSWORD

#Hibernate properties
hibernate.show_sql=true
hibernate.hbm2ddl.auto=create
hibernate.dialect=org.hibernate.dialect.MySQL8Dialect (change this property if don't use MySQL)
  1. By default, in pom.xml file is already exist dependencies for mySQL connector (change this dependency if don't use MySQL)
  2. Add configuration of your installed TomCat's local server to the IDE
  3. Run you project. You must be redirected to login page. Here you can go to register page or use default users to login:
  1. If authentication was successful you will be redirected to http://localhost:8080/, where you have access to all described features of cinema service App.

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.