An open API service indexing awesome lists of open source software.

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

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

---