A template to quickly standup a flask webapp with bootstrap and a database.
Go to file Use this template
itdominator f1ef7e7b78 Updated logging endpoint and levels 2023-09-09 18:37:05 -05:00
images Updating Bootstrap; refactoring dir structure, Pep 8 import cleanup 2023-03-11 21:10:29 -06:00
src Updated logging endpoint and levels 2023-09-09 18:37:05 -05:00
.gitignore added ignore file 2020-03-14 13:41:47 -05:00
LICENSE Initial commit 2019-11-01 16:45:48 -05:00
README.md Removed React and added HTMX 2023-09-09 18:18:43 -05:00
create_venv.sh Added OIDC IAM logic for Keycloak 2020-10-30 18:25:34 -05:00
linux-requirements.txt Added to requirements and fixed logging 2021-02-05 00:29:23 -06:00
windows-requirements.txt Added to requirements and fixed logging 2021-02-05 00:29:23 -06:00

README.md

Flask-Project-Template

A template to quickly standup a Flask app with Bootstrap 5, HTMX, OIDC IAM, and a database.

Dependencies

sudo apt install python3

Setup

*** Change directory to Flask-Project-Template/ or rename the folder before doing so. Then either run the create_venv.sh script. For windows, you'll need git bash. You can also just create the venv yourself and pip install the dependencies thereafter.

*** To start the application:

Linux/Mac ./linux-start.sh

Windows ./windows-start.sh

Images

1 Default starting interface.

Notes

  • Make sure to change the port in the start script as needed.
  • You can change the login route by changing the 'LOGIN_PATH' variable in the init.py file in the 'core' directory.
  • Get Keycloak to use oidc login route.
  • If using Keycloak, make sure to change the client_secrets.json file values to match your Keycloak settings. Or, match Keycloak settings to the client_secrets.json file.
  • Have fun!