https://github.com/brockaltug/webpage-template
Basic webpage registration / login dashboard template 📋
https://github.com/brockaltug/webpage-template
css flask html python sqlite3
Last synced: 2 months ago
JSON representation
Basic webpage registration / login dashboard template 📋
- Host: GitHub
- URL: https://github.com/brockaltug/webpage-template
- Owner: BrockAltug
- Created: 2023-11-25T17:58:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-25T18:05:28.000Z (over 2 years ago)
- Last Synced: 2025-07-26T05:34:04.218Z (12 months ago)
- Topics: css, flask, html, python, sqlite3
- Language: HTML
- 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
# Project Overview
This project consists of several files contributing to a Flask-based web application designed for user authentication and management.
## Files Overview
### 1. `app.py`
- **Purpose**: Contains the Flask application with routes managing user authentication, registration, dashboard display, user information, and logout.
- **Key Functionalities**:
- **Routes**:
- `/`: Renders the login page.
- `/login`: Handles user login and authentication.
- `/register`: Manages user registration.
- `/delete_user`: Deletes a user from the database.
- `/info`: Displays user information and allows user deletion.
- `/dashboard`: Renders the dashboard page.
- `/logout`: Logs out the user.
- **Integration**:
- Utilizes SQLite database for user data storage.
### 2. `make_db.py`
- **Purpose**: Creates an SQLite database file (`user_database.db`) and defines a table structure (`users`) for user registration.
- **Functionality**:
- Establishes the database schema with columns for user ID, username, and password.
### 3. `dashboard.html`
- **Purpose**: Represents the dashboard view for authenticated users.
- **Content**:
- Welcomes the user.
- Provides links to logout and view user information.
- Contains placeholders for dashboard content.
### 4. `index.html`
- **Purpose**: Serves as the login page.
- **Content**:
- Login form with username and password fields.
- Redirects to the dashboard upon successful login.
### 5. `info.html`
- **Purpose**: Displays user information and allows deletion of user accounts.
- **Content**:
- Total registered accounts count.
- Table listing usernames with delete options.
- Link to navigate back to the dashboard.
### 6. `registration.html`
- **Purpose**: Provides a registration form for new users.
- **Content**:
- Form to input username and password.
- Validation for password matching and existing usernames.
- Link to navigate to the login page.