Skip to content
/ Weather-App Public template

A Flask Weather Tracker app made with OpenWeatherMap API.

Notifications You must be signed in to change notification settings

DAW-distancia/Weather-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather-App

Modificaciones para desplegar con Apache2 + WSGI

  • 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.

Preview

weather_app

Instructions

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

Technologies

Frontend: Basic HTML, Bulma.

Backend: Flask.

Database: SQLite.

Objetivo:

Poner en marcha una web escrita en python (flask) de tres formas diferentes:

  • con apache2 + wsgi
  • con apache2 + gunicorn/uwsgi
  • con nginx + gunicorn/uwsgi.

Instrucciones para clase:

Instalación con apache2 + wsgi

Sigue las instrucciones del ejercicio anterior

Instalación con apache2 + gunicorn/uwsgi

Sigue las instrucciones de https://fp.josedomingo.org/iaw2122/u03/gunicorn.html

Instalación con nginx + gunicorn/uswgi

Sigue las instrucciones de https://fp.josedomingo.org/iaw2122/u03/gunicorn.html

Capturas

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í: Captura-de-pantalla

About

A Flask Weather Tracker app made with OpenWeatherMap API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published