kjfigueroa / flask-auth-system

Home Page:https://kjfigueroa.github.io/cv/CV.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LinkedIn Python Flask MIT License

User authentication using Flask

A simple application whose intention is to experiment, apply, and characterize the various tools that Python offers from the frameworks Flask & Jinja. This is the application of the method for the Registration and/or Log-In of a user whose data will be stored in a database deployed in SQLAlchemy.

As a reference, to deploy this mini-project I have studied the repository: Repository, from the Author: ondiek-elijah.me.

Start Point

Using Docker

Using the image from my DockerHub:

$ docker pull kevinjessid/flask-auth-system:latest

Just run the a new container using the image kevinjessid/flask-auth-system

Flask-Auth-System.mp4

Deploying from repo

I used Ubuntu 20.04 as a host

$ sudo apt install -y python3 python3-pip
    ...
$ git clone https://github.com/kjfigueroa/flask-auth-system.git project && cd project
    ...
$ python3 -m venv micro-auth-app
$ source micro-auth-app/bin/activate
(micro-auth-app)$ cd flask-auth-system
(micro-auth-app)$ pip install -r requirements.txt
(micro-auth-app)$ python3 manage.py
(micro-auth-app)$ export FLASK_APP=routes.py
(micro-auth-app)$ export FLASK_ENV=development
(micro-auth-app)$ FLASK_DEBUG=1
(micro-auth-app)$ flask run
local-app.mp4