https://github.com/shekharsikku/flask-session
https://github.com/shekharsikku/flask-session
authentication flask-session flask-sqlalchemy python-flask waitress
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/shekharsikku/flask-session
- Owner: shekharsikku
- Created: 2024-06-10T02:08:01.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-07-23T06:17:38.000Z (10 months ago)
- Last Synced: 2025-01-25T19:42:09.172Z (4 months ago)
- Topics: authentication, flask-session, flask-sqlalchemy, python-flask, waitress
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# **Flask Session Authentication**
**Session Authentication System using Python Flask**
## 🚀 Setup Instructions
**Create Virtual Environment**
```bash
python -m venv .venv
```**Activate Virtual Environment**
```bash
source .venv/Scripts/activate
```**Install Required Modules**
```bash
python -m pip install -r requirements.txt
```**Environment Variables Setup**
Change, **.env.sample** filename to **.env** and add all required fields.
```env
MYSQLDB_URI=""
SECRET_KEY=""
CORS_ORIGIN="*"
SERVER_MODE="development"
```_Server mode should be - development/deployment_
**Start Development Server**
```bash
python main.py
```**Test Api Endpoints**
You need tools like **Postman**, **ApiDog** or you can use Visual Studio Code extension **Thunder Client**.
**Use proxy for test Api endpoints**
- For Debug Mode - if server mode is development
```bash
http://localhost:8070
```- For WSGI Server - if server mode is deployment
```bash
http://localhost:8080
```### 🪄 Code by Shekhar Sharma
---