A simple example of server authentication using Flask and a Database wrapper for postgresql.
We are using Flask to serve the webpages, and with the Database wrapper, we create and communicate with a database in PostgreSQL, which is going to store the data of our users and their encryped passwords.
Just clone the repo on your server, install PSQL and the requirements (I recommed creating a virtual environment). Then, you can use Gunicorn in combination with NGINX to serve the Flask app.
We don't offer any kind of warranty or security strength, this was just a 1-2 month long project for the subject "Administración de Sistemas" (System Administration), for the "Escuela Politécnica de Ingeniería", Gijón, Asturias.
Please, take a look at the repository LICENSE.
- Silvia Rodríguez Bares
- Marcos Gutiérrez Alonso