RafaelMiquelino/dash-flask-login
关于
Implementation of Flask-login on top of Dash.
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文dash-flask-login

This is an example of Flask-login implementation on top of a Dash application for users authentication.
The example comes with users authentication through a sqlite3 database, however you can use your own database by changing the con parameter with your database URI in the config.txt file.
The example comes with the a standard username test and password test1 but you can add more users using the add_remove_users.ipynb jupyter notebook or the functions available in the users_mgt.py.
Files description:
add_remove_users.ipynb: A jupyter notebook to help creating and removing users
app.py: The app initial screen
config.py: python script to initialize the configuration included in the config.txt file
config.txt: configuration file
requirements.in: input configuration file to be used together with pip-tools
requirements.txt: configuration file generated bypip-tools
server.py: the app initialization file
users.db: sqlite3 database with user information
users_mgt.py: helper file for the user management process
Running an app locally
To run an app locally:
- (optional) create and activate new virtualenv:
pip install virtualenv
virtualenv venv
source venv/bin/activate
pip install -r requirements.txtflask runorgunicorn wsgi:application- open http://127.0.0.1:5000 in your browser or
flask run --host=0.0.0.0orgunicorn --bind 0.0.0.0:8000 wsgi:applicationto open for external connections
Deployng to Heroku
- Install Heroku CLI: https://devcenter.heroku.com/articles/heroku-cli
- Login to your heroku account:
heroku login - Create the app:
heroku create - Deploy to Heroku:
git push heroku master - Access the app via the address provided by Heroku
Contributing
PRs accepted! Please contribute if you believe this example can be improved.
探索相关项目
加载中…