Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sourasishbasu/flask-template
A well structured Flask app template for personal use
https://github.com/sourasishbasu/flask-template
authentication flask python
Last synced: 16 days ago
JSON representation
A well 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 (8 months ago)
- Default Branch: master
- Last Pushed: 2024-05-17T14:13:17.000Z (8 months ago)
- Last Synced: 2024-05-17T15:44:52.558Z (8 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
```