Skip to content

Karan-githubb/tailwebs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎓 Teacher Portal – Flask Application

A simple yet powerful web portal for teachers to manage students — built using Python, Flask, HTML, CSS, and JavaScript


🚀 Features

✅ Secure Login System (with password encryption)
✅ Dashboard showing student list
✅ Add / Edit / Delete students via a modal
✅ Same modal used for both Add and Edit
✅ Client-side input validation (marks must be 0–100)
✅ Session-based login with Logout
✅ Custom CSS (no frameworks)


📁 Project Structure

teacher_portal_flask/ ├── app.py # Main Flask application ├── init_db.py # DB initialization script ├── portal.db # SQLite database (auto-generated) │ ├── templates/ │ ├── login.html # Login page │ └── home.html # Dashboard with student table + modal │ ├── static/ │ ├── script.js # JavaScript for modal & AJAX │ ├── styles.css # CSS styling for dashboard & modal │ └── login.css # CSS styling for login page │ └── README.md # This file

Step-by-step

Step 1: Create and activate virtual environment

python -m venv env source env/bin/activate # On macOS/Linux env\Scripts\activate # On Windows

Step 2: Install dependencies from requirements.txt

pip install -r requirements.txt

Step 3: Initialize the database

python init_db.py

Step 4: Run the application

python app.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published