This repository has the code for an online cinema ticket office. You can buy movie tickets and get showtime information.
Prerequisites:
- Docker installed on your system.
- Docker Compose installed on your system.
-
Clone the repository to your local machine using the following command:
git clone https://github.com/Falokut/online_cinema_ticket_office.git
-
Configure the required services. Each service has its own setup instructions:
-
Start the gateway by running the following command:
docker-compose -f gateway.yml up --build gateway
If you have the
make
utility installed, you can also use the following command:make .run
-
Once the gateway is successfully started, you can access the RestAPI endpoint at
http://localhost:80
and the gRPC endpoint athttp://localhost:81
.
Please note that these instructions assume that Docker and Docker Compose are already installed on your system. If you haven't installed them yet, please refer to the Docker documentation for the appropriate installation steps for your operating system.
To check the version of Docker Compose, you can use the following command:
docker-compose --version
This will display the version number of Docker Compose installed on your system.
If you need to update Docker Compose to a newer version, follow these instuctions: Sure! Here are the additional instructions for Windows and macOS:
Instructions for Windows:
-
Download the latest binary of Docker Compose by visiting the official GitHub release page: https://github.com/docker/compose/releases.
-
Scroll down to the "Assets" section and find the binary that matches your system architecture, typically the one ending with
.exe
(e.g.,docker-compose-Windows-x86_64.exe
). -
Click on the binary to download it.
-
Move the downloaded binary to a directory in your system's
PATH
environment variable. This allows you to run Docker Compose from anywhere.
Instructions for Linux and macOS:
-
Open a terminal.
-
Download the latest binary of Docker Compose using the following command:
sudo curl -L "https://github.com/docker/compose/releases/download/{VERSION}/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
Replace
{VERSION}
with the actual version number you want to install. -
Apply executable permissions to the Docker Compose binary:
sudo chmod +x /usr/local/bin/docker-compose
-
Verify that Docker Compose has been updated successfully by running:
docker-compose --version
It should display the newly installed version.
- Grafana endpoint http://localhost:3000
- Prometheus endpoint http://localhost:9090
- Jaeger UI endpoint http://localhost:16686
- RestApi endpoint http://localhost:80
- gRPC endpoint http://localhost:81
- kafka-ui http://localhost:18082
We use Grafana, Prometheus, and Jaeger to collect and visualize application metrics. You can track the performance of the application using these tools.
- @Falokut - Primary author of the project
This project is licensed under the terms of the MIT License.