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

https://github.com/shrishmaruge/flask-login-app

This is a secure and modern Flask-based user authentication system with full signup, login, logout, and session management functionality. It connects to a MySQL database
https://github.com/shrishmaruge/flask-login-app

dashboard flask login-system mysql-database python3

Last synced: about 2 months ago
JSON representation

This is a secure and modern Flask-based user authentication system with full signup, login, logout, and session management functionality. It connects to a MySQL database

Awesome Lists containing this project

README

          

# ๐Ÿ” Flask Login System with MySQL

A fully functional Flask-based login system with MySQL database integration. This project allows users to register, log in, and manage sessions securely using password hashing and Bootstrap-styled UI.

---

## ๐ŸŒ Live Demo

[![Deploy to Render](https://img.shields.io/badge/deployed-on--render-success?style=for-the-badge&logo=render)]([[https://your-deployed-link.onrender.com](https://flask-login-app-kn5d.onrender.com)](https://flaskloginappkn5d.onrender.com))

LIVE Link : [https://flask-login-app-kn5d.onrender.com](https://flask-login-app-kn5d.onrender.com/login)

---

## ๐Ÿ’ก Features

- ๐Ÿงพ Signup & Login with validation
- ๐Ÿ” Secure password hashing (Werkzeug)
- ๐Ÿ’ผ MySQL database integration
- ๐Ÿ“ฆ Flash messaging for feedback
- ๐Ÿง  Session-based access control
- ๐ŸŽจ Clean Bootstrap 5 UI
- โš ๏ธ Alerts for login/signup status
- ๐Ÿšช Logout functionality

---
| Login Page | Signup Page | Dashboard |
| ------------------------------- | --------------------------------- | ----------------------------- |
| ![Screenshot 2025-06-15 151253](https://github.com/user-attachments/assets/4a4f66b7-f8ce-4d75-9780-18dfc0aafb0b) | ![Screenshot 2025-06-15 151236](https://github.com/user-attachments/assets/17b80b65-df61-4e89-90c7-6f9f36745118) | ![Screenshot 2025-06-15 151315](https://github.com/user-attachments/assets/45cf36f1-2933-4a50-a814-1258a899efa8) |

---

## ๐Ÿ›  Tech Stack

| Layer | Technology |
|----------------|------------------------------|
| Framework | Flask |
| Language | Python 3 |
| Database | MySQL |
| Frontend | HTML5, CSS3, Bootstrap 5 |
| Authentication | Werkzeug security utils |
| Deployment | Render / Railway / Localhost |

---

## โš™๏ธ Clone the repo

git clone https://github.com/ShrishMaruge/flask-login-app.git
cd flask-login-app

---

## ๐Ÿ“ฆ Install dependencies

pip install -r requirements.txt

---
## ๐Ÿ” Set up .env (optional)
If you add python-dotenv, store sensitive data like this in .env:

FLASK_SECRET_KEY=supersecretkey
MYSQL_USER=root
MYSQL_PASSWORD=your_password
MYSQL_DB=Login

---

## ๐Ÿ—ƒ๏ธ MySQL Database Setup

CREATE DATABASE Login;

USE Login;

CREATE TABLE register (
username VARCHAR(30) PRIMARY KEY,
password VARCHAR(255)
);

---
## โš–๏ธ License
This project is licensed under the Apache License 2.0
ยฉ 2025 Shrish Maruge

## ๐Ÿ™‹โ€โ™‚๏ธ Author
Shrish Maruge
๐Ÿ“ซ Connect with me on GitHub

---

## ๐Ÿ“‚ Project Structure

```bash
flask-login-app/
โ”œโ”€โ”€ static/
โ”‚ โ””โ”€โ”€ style.css
โ”œโ”€โ”€ templates/
โ”‚ โ”œโ”€โ”€ base.html
โ”‚ โ”œโ”€โ”€ home.html
โ”‚ โ”œโ”€โ”€ login.html
โ”‚ โ””โ”€โ”€ signup.html
โ”œโ”€โ”€ app.py
โ”œโ”€โ”€ requirements.txt
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ LICENSE
โ””โ”€โ”€ README.md