Temple-Expenses-Management

🛕 Temple Management Backend

A backend system built with Node.js and Express to power a temple website management platform. It offers RESTful APIs for managing donations, donors, expenses, events, reports, and user authentication, including a secure password reset mechanism.


✨ Features

🔐 User Authentication & Profile

📁 CRUD Operations

Manage core temple data:

Each supports Create, Read, Update, Delete operations.

📊 Derived Reports


🧭 API Routes

Endpoint Method(s) Description
/api/login POST Login with username/password or mobile number (reset flow)
/api/users GET, POST Get all users / Create a new user
/api/users/:id PUT Update user info (e.g., password)
/api/donations CRUD Manage donations
/api/donors CRUD Manage donors
/api/expenses CRUD Manage expenses with image upload
/api/events CRUD Manage events
/api/reports CRUD Manage reports
/api/derived-donors GET Aggregate donor report, filterable by event

🔁 Password Reset Flow

  1. User attempts login via mobile number.
  2. Backend verifies the mobile number.
  3. User is prompted to reset the password.
  4. User updates password via PUT /api/users/:id.
  5. User logs in again using the new password.

⚙️ Setup Instructions

  1. Clone the repository:
    git clone https://github.com/your-username/temple-management-backend.git
    cd temple-management-backend
    
  2. Install dependencies:
    npm install
    
  3. Start the backend server:
    node backend/server.js
    
  4. Visit: http://localhost:5000

🔗 Frontend Integration Notes


⚠️ Important Notes


📧 Contact

Hemant Pramod Mahajan
📧 Email: hpmahajan2013@gmail.com


🖼️ Screenshots

✅ Admin Dashboard

Admin Dashboard

💰 Donation Entry

Page 1
Donation Page 1
Page 2
Donation Page 2

👥 Donors Summary

Donors Summary

💸 Expenses Page

Expenses Page

🔐 Login Page

Login Page

🧑‍💼 Users Panel

Users Panel

📅 Events Page

Events Page

📊 Reports Page

Reports Page

🙋‍♂️ User Profile Page

Profile Page


📅 Last updated: May 2025