Skip to content

dipsana/lokveda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

34 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒฟ LokVeda โ€” Your E-Gram Panchayat

LokVeda is a web-based E-Gram Panchayat system designed to digitize essential village-level services with a strong focus on authentication, session security, accessibility, and UX clarity.

This project currently represents a preview / base release (v1.0.1), focusing on secure access, role-based dashboards, and system flow rather than full service execution.

๐Ÿ”— Live Demo: https://dipsana.github.io/lokveda/


๐Ÿš€ Tech Stack

HTML5 CSS3 JavaScript Firebase


๐Ÿ›๏ธ Project Overview

LokVeda simulates a real-world government service portal for Indian villages, where citizens are pre-registered and authenticated via OTP.
No public sign-up is required, reflecting real administrative workflows.

The system supports three roles:

  • ๐Ÿ‘ค User (Citizen)
  • ๐Ÿง‘โ€๐Ÿ’ผ Staff
  • ๐Ÿ›ก๏ธ Admin

Each role has a dedicated login page and dashboard.


โœจ Key Features (Implemented)

๐Ÿ” Authentication & Security

  • OTP-based login (Aadhaar-linked phone number)
  • Regex-based input validation (length, digits, format)
  • Friendly status messages for success/failure
  • Max attempt limit (blocks user for 24 hours after repeated failures)
  • Session lock if user exits improperly
  • Secure logout with warning modal

โฑ๏ธ Session Management

  • Session creation & validation via Firebase
  • Auto logout after 15 minutes of inactivity
  • Session guard prevents:
    • Direct dashboard access without login
    • Sneaky URL navigation
  • Users attempting multiple logins are restricted for 3 hours

๐ŸŒ Location Checker

  • Ensures role-based geographic access:
    • Users โ†’ same village
    • Staff โ†’ same state
    • Admin โ†’ within India (border-aware logic)
  • Prevents misuse from outside allowed regions

๐Ÿ‘‹ Greeting System

  • Dynamic greeting message displayed across dashboards
  • Personalized with user name
  • Time-aware greeting logic

๐ŸŒ™ Dark Mode (UX-focused)

  • Detects browser theme preference instantly
  • Preserves user choice locally (until cache cleared)
  • Smooth, non-blinding transitions
  • Minimal, clean toggle button with hover aura

๐Ÿงญ Navigation Bar (Post-Login)

Displayed only after successful authentication:

  • Greeting text
  • Dashboard shortcut
  • Search icon + expandable search bar (UI-ready)
  • Dark mode toggle
  • Secure logout button

Visibility is managed using reusable hide() and show() utilities.


๐Ÿ“„ Forms & Services (Preview Stage)

  • Forms are created and load dynamically via form-loader

  • URL parameter-based loading implemented

  • Submission, updates, and downloads are not yet implemented

  • Undeveloped features are clearly marked using:

    element.title = 'In development';

๐Ÿ—‚๏ธ Firebase as Virtual Backend

All database and authentication logic is encapsulated inside firebase.js.

  • Acts as a virtual backend
  • Exports only required getters/setters
  • Prevents data tampering via encapsulation
  • Must be initialized exactly once
  • Re-initialization triggers forced logout

If moved server-side, the app architecture remains secure.


๐Ÿ“ Clickable Project Structure

Perfect, this is clean now. Below is a fully updated, clickable folder structure with all form files included and linked individually, exactly suitable for README / mini-readme / documentation repo view (GitHub).

You can copy-paste this as-is.


๐Ÿ“ Clickable Project Structure โ€” LokVeda: Your E-Gram Panchayat

lokveda-egram-panchayat/
โ”œโ”€โ”€ ๐Ÿ“ assets/
โ”‚ โ””โ”€โ”€ ๐Ÿ“ icons/
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ auth/
โ”‚ โ”œโ”€โ”€ auth-user.html
โ”‚ โ”œโ”€โ”€ auth-staff.html
โ”‚ โ”œโ”€โ”€ auth-admin.html
โ”‚ โ”œโ”€โ”€ auth-core.js
โ”‚ โ””โ”€โ”€ auth.css
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ dashboard/
โ”‚ โ”œโ”€โ”€ dashboard-user.html
โ”‚ โ”œโ”€โ”€ dashboard-staff.html
โ”‚ โ”œโ”€โ”€ dashboard-admin.html
โ”‚ โ”œโ”€โ”€ dashboard.js
โ”‚ โ””โ”€โ”€ dashboard.css
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ form-loader/
โ”‚ โ”œโ”€โ”€ form-api.js
โ”‚ โ”œโ”€โ”€ form-loader.js
โ”‚ โ”œโ”€โ”€ form-ui.css
โ”‚ โ””โ”€โ”€ form-view.html
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ forms/
โ”‚ โ”œโ”€โ”€ birth.html
โ”‚ โ”œโ”€โ”€ death.html
โ”‚ โ”œโ”€โ”€ dues.html
โ”‚ โ”œโ”€โ”€ election-updates.html
โ”‚ โ”œโ”€โ”€ grievance.html
โ”‚ โ”œโ”€โ”€ health-checkup.html
โ”‚ โ”œโ”€โ”€ jobs.html
โ”‚ โ”œโ”€โ”€ land.html
โ”‚ โ”œโ”€โ”€ mgnrega.html
โ”‚ โ”œโ”€โ”€ property-tax.html
โ”‚ โ”œโ”€โ”€ property.html
โ”‚ โ”œโ”€โ”€ public-notices.html
โ”‚ โ”œโ”€โ”€ public-works.html
โ”‚ โ”œโ”€โ”€ rti.html
โ”‚ โ”œโ”€โ”€ sanitation.html
โ”‚ โ”œโ”€โ”€ skill-training.html
โ”‚ โ”œโ”€โ”€ subsidies.html
โ”‚ โ”œโ”€โ”€ tenders.html
โ”‚ โ”œโ”€โ”€ voter-id.html
โ”‚ โ”œโ”€โ”€ voter-list.html
โ”‚ โ”œโ”€โ”€ water-tax.html
โ”‚ โ””โ”€โ”€ welfare-schemes.html
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ services/ (future scope)
โ”‚
โ”œโ”€โ”€ dom.js
โ”œโ”€โ”€ firebase.js
โ”œโ”€โ”€ greeting-bot.js
โ”œโ”€โ”€ nav-bar.js
โ”œโ”€โ”€ script-global.js
โ”œโ”€โ”€ style-global.css
โ”œโ”€โ”€ utilities.css
โ”œโ”€โ”€ index.html
โ”œโ”€โ”€ favicon.png
โ”œโ”€โ”€ preview.png
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ documentation/
โ”‚ โ”œโ”€โ”€ ๐Ÿ“’ LOKVEDA_COLLEGE.docx
โ”‚ โ”œโ”€โ”€ ๐Ÿ“’ LOKVEDA_COLLEGE.pdf
โ”‚ โ”œโ”€โ”€ ๐Ÿ“’ LOKVEDA_STUDENT.docx
โ”‚ โ”œโ”€โ”€ ๐Ÿ“’ LOKVEDA_STUDENT.pdf
โ”‚ โ”œโ”€โ”€ ๐Ÿ“— SRS.docx
โ”‚ โ”œโ”€โ”€ ๐Ÿ“• SRS.pdf
โ”‚ โ””โ”€โ”€ ๐Ÿ“„ README.md โ”‚
โ”œโ”€โ”€ ๐Ÿ•’ CHANGELOG.md
โ”œโ”€โ”€ ๐Ÿ”‘ LICENSE
โ””โ”€โ”€ ๐Ÿ“„ README.md


๐Ÿ“š Documentation


๐Ÿ”ฎ Future Scope

  • Service application submission (CRUD)
  • Admin approval workflows
  • Staff verification flow
  • Downloadable forms (PDF/DOCX)
  • Profile management
  • Full backend deployment

๐Ÿ‘ฅ Contributors

  • Dipsana Roy โ€” Core architecture, frontend, authentication, session logic, UX, Firebase integration
  • Ayushman Saha โ€” Documentation & Presentation
  • Sayan Goswami โ€” Documentation & Presentation
  • Ananya Saha โ€” Forms & Documentation
  • Smritilata Sardar โ€” Forms & Documentation

๐Ÿ“œ License

This project is licensed under the MIT License.


References

  1. IEEE Software Requirements Specification Standards
  2. Firebase Official Documentation
  3. Twilio Console
  4. MDN Web Docs โ€“ HTML, CSS, JavaScript
  5. Research papers on E-Governance systems
  6. ChatGPT (OpenAI) โ€” Assisted in documentation structuring, content refinement, and automation of repetitive coding tasks

Note: This project intentionally prioritizes system design, security flow, and real-world logic over feature completeness for this phase.

About

LokVeda is a web-based E-Gram Panchayat system designed to digitize essential village-level services with a strong focus on authentication, session security, accessibility, and UX clarity.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Contributors