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.
Manage core temple data:
Each supports Create, Read, Update, Delete operations.
| 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 |
PUT /api/users/:id.git clone https://github.com/your-username/temple-management-backend.git
cd temple-management-backend
npm install
node backend/server.js
headers: {
"Content-Type": "application/json"
}
{
"password": "newPassword123"
}
users.json (for demo).data/*.json files./public and /admin.Hemant Pramod Mahajan
📧 Email: hpmahajan2013@gmail.com

Page 1

Page 2








📅 Last updated: May 2025