In this folder there are 2 examples:
The simple_app.py
A simple example using a Python dictionaty as user database and storing passwords as plain text.
Run with:
python simple_app.py
The manage.py
A complete application using Flask factories, click commands and storing
passwords encrypted in a json file users.json
which you can easily take
as example to replace with your own database manager.
NOTE: this example is not meant for production use as writing in a json file is suitable only for single access. Go with MongoDb, TinyDB or other SGDB.
Run with:
python manage.py
Create new user:
python manage.py adduser
Run the server
python manage.py runserver