GithubHelp home page GithubHelp logo

meghagoyal04 / movie-ticket-booking-system Goto Github PK

View Code? Open in Web Editor NEW

This project forked from michalzaq12/movie-ticket-booking-system

0.0 0.0 0.0 9.85 MB

An application for booking tickets at the cinema. Implemented in the microservices architecture, using Docker and docker-compose

License: MIT License

JavaScript 49.49% HTML 24.88% Dockerfile 1.63% Vue 22.30% CSS 1.70%

movie-ticket-booking-system's Introduction

movie-tickets

An application for booking tickets at the cinema. Implemented in the microservices architecture, using Docker and docker-compose.

Architecture

How to run

Before you start

  • Install Docker and Docker Compose
  • Set up the connection to database in movie-service/src/config/db.js
  • Set AMQP_URL variable in .env file (you can use a free 'Little Lemur' plan from CloudAMQP)
#start services
docker-compose up -d

#fill db with sample data 
docker exec -it <MOVIE_SERVICE_CONTAINER_NAME> node src/init

After starting services web app is available on http://localhost:80

Features

  • Browsing available movies at cinema

    Details of movies are fetched from external api's OMDb TMDb

  • Buying tickets

    Orders are stored in local database

  • Temporary reservations

    Reservations are implemented by using Socket.io (each movie has own room -> each client subscribe only room/movie event which is actually browsed) and stored in-memory on api-gateway. To improve api scalability on production, reservations should be stored in distributed DB like Redis

  • Sending email with purchased ticket

    Using fake SMTP service Ethereal

Development

Commands

#rebuild containers
docker-compose build

#list all containers
docker-compose ps -all

Useful links

movie-ticket-booking-system's People

Contributors

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