https://github.com/sourasishbasu/flask-template
A very simple and structured Flask app template for personal use
https://github.com/sourasishbasu/flask-template
authentication flask python
Last synced: 5 months ago
JSON representation
A very simple and structured Flask app template for personal use
- Host: GitHub
- URL: https://github.com/sourasishbasu/flask-template
- Owner: SourasishBasu
- Created: 2024-05-17T14:01:29.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-05-17T14:13:17.000Z (about 1 year ago)
- Last Synced: 2025-01-09T10:38:40.869Z (6 months ago)
- Topics: authentication, flask, python
- Language: CSS
- Homepage:
- Size: 60.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flask Template
A well structured end to end template of a Flask project with following features:- User login and authentication
- SQLite DB
- Password Encryption via hashing `[PBKDF2:SHA256]` and salting
- File serving for download### Methods
- `GET`
- `POST`## Prerequisites
- Python 3.11 and up
- SQLite using SQLAlchemy
- Login and Authentication using Flask-Login
- Password Encryption using Werkzeug Security Utils# Setup
- Clone the project files from the repository into your local device from the terminal.
```bash
git clone https://github.com/SourasishBasu/Flask-template.git
cd Flask-template
```- Initialize `venv` and install necessary libraries using `pip`.
```bash
python -m venv venv
./venv/Scripts/activate
pip install -r requirements.txt
```- Run the app. Visit http://localhost:5000/ in your preferred browser to use various routes.
```bash
python app.py
```