- Uso de mysql en lugar de sqlite
- Instalación del cliente para python
- Creación de la base de datos si no existe (en fichero
routes.py
)
⛅🌧️🌩️
A simple Weather Checking Application built in Flask made to track current weather in any city of the world. Uses OpenWeatherMap API.
Scroll down to see the Instructions on how to launch this project properly.
Clone this repository, cd into it
git clone https://github.com/hatredholder/Flask-Weather-App.git
cd Flask-Weather-App
Start a new Virtualenv, activate it, install Python module requirements
virtualenv myenv
source myenv/bin/activate
pip install -r requirements.txt
Run the Flask server
python run.py
Frontend: Basic HTML, Bulma.
Backend: Flask.
Database: SQLite.
Poner en marcha una web escrita en python (flask) de tres formas diferentes:
- con apache2 + wsgi
- con apache2 + gunicorn/uwsgi
- con nginx + gunicorn/uwsgi.
Sigue las instrucciones del ejercicio anterior
Sigue las instrucciones de https://fp.josedomingo.org/iaw2122/u03/gunicorn.html
Sigue las instrucciones de https://fp.josedomingo.org/iaw2122/u03/gunicorn.html
Añade capturas de pantalla de las tres configuraciones. Muestra el contenido de las cabederas. Puedes usar el comando curl -I http://localhost:puerto
o las developer tools del navegador como aquí: