Skip to content

Devattom/flask-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flask-app

Little Flask app which handle user identification throught a database to store the user. It use Flask, bcrypt for the encryption of the password and some native python module. This app allow signup, signin et logout and show different things depends of the status of the user.

Init

If you are using Vs Code first create the virtual environment:

  • Ctrl+shift+P
  • Pyhton create environment
  • Then choose VENV and the folder where your cloned this project.
  • Choose your interpreter

If you want to do it with command line :

(Windows)

$ mkdir myproject
$ cd myproject
$ py -3 -m .venv venv

(Linux/Mac)

$ mkdir myproject
$ cd myproject
$ python3 -m .venv venv

Activate the scripts at the end :

(Windows)

$ .venv\Scripts\activate

(Linux/Mac)

$ .venv\bin\activate

Install Flask

Once you have set the virtual environment you have to download and install Flask:

$ pip install Flask

Install MySql

Don't forget to install Mysql connector for the database connection :

$ pip install mysql-connector-python

Install bcrypt

And to install bcrypt

$ pip install bcrypt

Run app

Once everything is set you should normally be able to work on this project, for run the app just do :

$ flask run

Database

I put the script for the database creation don't forget to build it if you want to test this code.

Enjoy !

Comments

Don't hesitate to tell me if you see something that can be improved, I am a begginer and deeply into sharing and learning.

About

Little Flask app handle user identification

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published