Proyecto de Simulación de sistemas / Simulation System project
Simulación de un sistema discreto de 1 - cola - 1 servidor. Desarrollado en Python para el Backend empleando el Framework Flask, y Angular 4 para el Frontend.
Simulation of a discrete system of 1 - queue - 1 server. Developed in Python for the Backend using the Flask Framework, and Angular 4 for the Frontend.
Todo lo que necesitas instalar para la configuración del proyecto.
What things you need to install for the project setup.
-Servidor NodeJS (Angular) / NodeJS Server (Angular):
npm install -g @angular/cli
- Ng2-chart (libreria de javascript para gráficas) / Ng2-chart (javascript library for charts):
npm install ng2-charts --save
-Paquetes de python / python packages:
pip install numpy
pip install Flask
(Solo para ambiente de desarrollo / only for dev mode)
pip install -U flask-cors
Abra la terminal en la ruta del repositorio / Open a terminar in the repository url: -Servidor Python
cd backend
python app.py
-Servidor NodeJS (Angular) (solo para ambiente de desarrollo / only dev mode)
cd frontend
ng serve –open
cd frontend
ng build --prod
Copiar el contenido de la carpeta /frontend/dist en /backend/static Agregar en el index.html a todas las rutas locales static/<prev_url>
Copy the content of /frontend/dist to /backend/static Add to all local url in index.html the prefix static/<prev_url>
- Python - Backend
- Flask - REST Framework
- Flask-cors - CORS REST Framework
- Angular - Frontend JS Framework
- Bootstrap 4 - CSS Framework
- ng2-chart - Charts Library
- PhD Modaldo Tuñón -Professor-