{"id":15141791,"url":"https://github.com/in7hesky/python-flask-boilerplate","last_synced_at":"2026-01-24T13:10:11.552Z","repository":{"id":251769982,"uuid":"838257747","full_name":"in7hesky/python-flask-boilerplate","owner":"in7hesky","description":"A demo flask app utilising SQLite for authentication support.","archived":false,"fork":false,"pushed_at":"2024-08-13T14:53:09.000Z","size":38,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-08T10:50:22.042Z","etag":null,"topics":["bootstrap","docker-image","dynaconf","flask","flask-login","python","sqlalchemy","sqlite3","wtforms"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/in7hesky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-05T09:18:43.000Z","updated_at":"2024-08-21T16:20:42.000Z","dependencies_parsed_at":"2024-09-21T14:02:45.464Z","dependency_job_id":"b127d969-f384-4bde-831e-f52d26653f3f","html_url":"https://github.com/in7hesky/python-flask-boilerplate","commit_stats":null,"previous_names":["in7hesky/python-flask-blog"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/in7hesky%2Fpython-flask-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/in7hesky%2Fpython-flask-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/in7hesky%2Fpython-flask-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/in7hesky%2Fpython-flask-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/in7hesky","download_url":"https://codeload.github.com/in7hesky/python-flask-boilerplate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230520359,"owners_count":18238946,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","docker-image","dynaconf","flask","flask-login","python","sqlalchemy","sqlite3","wtforms"],"created_at":"2024-09-26T09:02:00.152Z","updated_at":"2026-01-24T13:10:11.470Z","avatar_url":"https://github.com/in7hesky.png","language":"Python","readme":"### Project Description ###\n\nThis is an example of some boilerplate code which can be used as a base for creating flask web apps.\n\nIt supports flask's blueprints, dynamic configuration for different environments of choice and provides an implementation of basic authentication system.\n\nThe development environment is preconfigured to run debug toolbar extension by default.\n\nList of main tools and libraries used:\n- flask\n- sqlite\n- sqlalchemy\n- dynaconf\n- wtforms\n- flask-login\n- bootstrap5\n- bcrypt\n\nYou can run the app in a docker container using `Dockerfile` provided or proceed with the instructions below to set it up by yourself.\n## Prerequisites\n\nInstall python manually or let it be chosen by [pyenv](https://github.com/pyenv/pyenv) if you've got one (see `.python-version` file).\n\nAfter that you just run:\n```\npython -m venv .venv\nsource .venv/bin/activate\npip install -r requirements.txt\n```\nNow set some environment variables, for **Linux** (dev mode) it works like that:\n```\nexport FLASK_APP=app.py\nexport FLASK_ENV=development\n```\nYou'll also need to set a `SECRET_KEY`. You may place it inside `config` folder in `.secrets.toml` file with such content:\n```\n[default]\nSECRET_KEY=\"SOME_SECRET_SEQUENCE_HERE\"\n```\nNow you just casually run the app with the command below:\n```\nflask run\n```\nIf you wish to access your app with some other device by **LAN**, you may need to include an option for that feature:\n```\nflask run --host=0.0.0.0\n```\n\n## Running the app\n\nAfter the app has started, the sqlite database file is created (`instance` folder).\n\nYou may open your browser and get to the app's homepage using `127.0.0.1:5000` ip address (default port).\n\nTo access the app via other device by **LAN**, you should use the host's local ip address (`192.168.*.*`).\n\nThe authentication pages are located on `/register` and `/login` endpoints.\n\n*The auth system was built for learning purposes. Though it implements some data validation, the app by no means is considered ready to be hosted publicly.*\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fin7hesky%2Fpython-flask-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fin7hesky%2Fpython-flask-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fin7hesky%2Fpython-flask-boilerplate/lists"}