Created by USJ FOT UG
🗓️ Created: 14/05/2025
🔄 Last Updated: 22/06/2025
- ✨ Modern and responsive design
- 🚀 High performance
- 📱 Mobile-friendly
- 🔒 Secure by default
- 🎨 Customizable themes
- Flask – Backend framework
- SQLAlchemy – ORM for database access
- Flask-Migrate – Database migration tool
- Tailwind CSS – CSS framework
- JavaScript / Alpine.js – Lightweight frontend scripting
- npm – Frontend dependency management
panhinda/
├── app/ # Main application code
├── migrations/ # Database migrations
├── static/ # CSS, JS, and image files
├── templates/ # HTML templates
├── config.py # Configuration file
├── package.json # npm configuration
└── ...
Follow these steps to clone and set up the project on your local machine.
git clone https://github.com/banuka20431/panhinda
cd panhindaOn Windows:
python -m venv .venv
.venv\Scripts\activateOn macOS/Linux:
python3 -m venv .venv
source .venv/bin/activatepip install -r requirements.txtCreate a file named config.py in the root directory with the following content:
import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config:
# Flask security params
SECRET_KEY = os.environ.get("SECRET_KEY", 'secret-key')
# Flask SQLAlchemy params
SQLALCHEMY_DATABASE_URI = os.environ.get("DATABASE_URI", f"sqlite:///{os.path.join(basedir, 'app.db')}")
SQLALCHEMY_TRACK_MODIFICATIONS = os.environ.get("SQLALCHEMY_TRACK_MODIFICATIONS", "False").lower() == "true"
# Flask session params
SESSION_PERMANENT = os.environ.get("SESSION_PERMANENT", "False").lower() == "true"
SESSION_TYPE = os.environ.get("SESSION_TYPE", "filesystem")
# Mail server params
MAIL_SERVER = os.environ.get("MAIL_SERVER", "smtp.gmail.com")
MAIL_PORT = int(os.environ.get("MAIL_PORT", 465))
MAIL_USERNAME = os.environ.get("MAIL_USERNAME", "***@gmail.com")
MAIL_PASSWORD = os.environ.get("MAIL_PASSWORD", "***")
MAIL_USE_TLS = os.environ.get("MAIL_USE_TLS", "False").lower() == "true"
MAIL_USE_SSL = os.environ.get("MAIL_USE_SSL", "True").lower() == "true"
# Custom paths
USER_DATA_PATH = os.environ.get("USER_DATA_PATH", os.path.join(basedir, "static", "user_data"))Replace sensitive values (like
MAIL_USERNAME,MAIL_PASSWORD, andSECRET_KEY) before deploying.
flask db init
flask db migrate
flask db upgradenpm install
npm run watchflask run --debugContributions are welcome! Feel free to fork this project, submit pull requests, or open issues.
This project is licensed under the Apache 2.0.