- Machaca Hancco Jesus 👦
- Moreno Villegas Royer 👦
- Aguilar Vilca Carlos 👦
- Beltran Torres Briguith 👧
- Manzano Añamuro Jorge 👦
This project is an online platform where users can buy their tickets to see the most anticipated movie, A platform of combines two web frameworks (Laravel & Flask) to perform interesting things like building REST API.
LARAVEL 📌
Laravel was used to build the whole page, thanks to the MVC (Model View Controller) pattern, we managed to create CRUD operations, view and controllers to build a usable dynamic web page.
FLASK 📌
Flask was used to build a REST API architecture hand in hand with Laravel. This with the objetive of handling transaccions and storing them in a nosql database, to later generate tickets that will be send to the user's email.
N° | Technologie | Version |
---|---|---|
1 | Laravel (PHP) | 10.10 |
2 | Flask (Python) | 2.3.2 |
3 | MariaDB | 10.11.4 |
4 | MongoDB | 1.9.1 |
5 | JavaScript | * |
6 | HTML | * |
7 | CSS | * |
8 | Boostrap | * |
First clone the repository.
git clone https://github.com/JsasMachaca/StarView-Cinema.git
cd StarView-Cinema
To access directory
cd Laravel
Activate MySql.
systemctl start mariadb
Activate MongoDB.
systemctl mongodb
Before migrating the database, create the database beforehand with the following tables to prevent issues.
first mariadb -u your_user -p
CREATE DATABASE CINEMA;
USE CINEMA;
CREATE TABLE EMPLEADOS (
nombres VARCHAR(30),
apelllidos VARCHAR(30),
id_emp INT(5) PRIMARY KEY,
dni INT(8),
sueldo DECIMAL(5,2),
horas_trabajo INT(4),
telefono INT(9)
);
CREATE TABLE MOVIES (
titulo VARCHAR(100),
info VARCHAR(500),
duracion VARCHAR(8),
precio DECIMAL(5,2),
banner MEDIUMBLOB,
taquilla VARCHAR(5),
id INT(11) AUTO_INCREMENT PRIMARY KEY
);
Migrate databases and install depencencies.
composer install
npm install
php artisan migrate
To access directory.
cd Flask
In Linux:
python -m venv venv
source venv/bin/activate
In Windows:
python -m venv venv
venv\Scripts\activate
Install all dependencies.
pip install -r requirements.txt
Activate Laravel project.
php artisan serve &
npm run dev &
Activate Flask Project
python main.py