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.
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 venvActivate the scripts at the end :
(Windows)
$ .venv\Scripts\activate(Linux/Mac)
$ .venv\bin\activateOnce you have set the virtual environment you have to download and install Flask:
$ pip install FlaskDon't forget to install Mysql connector for the database connection :
$ pip install mysql-connector-pythonAnd to install bcrypt
$ pip install bcryptOnce everything is set you should normally be able to work on this project, for run the app just do :
$ flask runI put the script for the database creation don't forget to build it if you want to test this code.
Enjoy !
Don't hesitate to tell me if you see something that can be improved, I am a begginer and deeply into sharing and learning.