Skip to content

Proyecto web con los framework backend Laravel y Flask

Notifications You must be signed in to change notification settings

loadept/StarView-Cinema

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

StarView Cinema

preview

Project by:

  • Machaca Hancco Jesus 👦
  • Moreno Villegas Royer 👦
  • Aguilar Vilca Carlos 👦
  • Beltran Torres Briguith 👧
  • Manzano Añamuro Jorge 👦

Description.

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.

Main technologies :

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.

More Languages and Databases.

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 *

Instalation 📃 .

Note ⚠️ :

The entire project was developed on Linux, so many of the commands will only work on Linux.

First clone the repository.

git clone https://github.com/JsasMachaca/StarView-Cinema.git
cd StarView-Cinema

Laravel Dependencies ✔️ :

To access directory

cd Laravel

Activate DATABASES (Linux).

Activate MySql.

systemctl start mariadb

Activate MongoDB.

systemctl mongodb

Migrate and install dependencies.

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

Flask Dependencies ✔️ :

To access directory.

cd Flask

Create and activate vitual enviroment (Linux & Windows).

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 all serves ✔️ .

Activate Laravel project.

php artisan serve &
npm run dev &

Activate Flask Project

python main.py

About

Proyecto web con los framework backend Laravel y Flask

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published