This backend server supports HelpingHub, a volunteer management platform. It provides RESTful APIs for managing volunteer posts, user details, and authentication, enabling full CRUD operations with secure access.
- Node.js with Express
- MongoDB
- Firebase Admin SDK
- CORS
- dotenv
-
GET /AllVolunteerNeedposts
Retrieve all volunteer need posts. -
GET /AllVolunteerNeedposts/Search
Search volunteer posts by query. -
GET /AllVolunteerNeedposts/volunteerneedpostdetailspage/:id
Get details of a volunteer post by ID. -
GET /AddVolunteerNeedPost/featuresdete
Get featured data related to volunteer posts. -
GET /ManageMyPosts/:email
Get all posts created by a user (by email). -
POST /AddVolunteerNeedPost
Create a new volunteer need post. -
PUT /Myvolunteerneedposts/:id
Full update of a volunteer post by ID. -
PATCH /AllVolunteerNeedposts/:id
Partial update of a volunteer post by ID. -
DELETE /Myvolunteerneedpost/:id
Delete a volunteer post by ID.
-
GET /VolunteerDetails/:email
Get volunteer details by user email. -
POST /VolunteerDetails
Add volunteer details. -
DELETE /VolunteerDetails/:id
Delete volunteer detail by ID.
POST /signup
Register a new user.
Follow these steps to run the project locally:
https://github.com/Hossahin/HelpingHub-Project-Server.gitcd HelpingHub-Project-Servernpm installCreate a
.envfile in the root directory and add the following:
DB_USER=your_database_username
DB_PASS=your_database_password
FIREBASE_SERVICE_KEY=your_firebase_key //base64nodemon index.jsVisit the local server: