Skip to content

HelpingHub Server is a Node.js backend providing RESTful APIs for managing volunteer posts, user details, and authentication. Using Express, MongoDB, and Firebase Admin SDK, it enables secure CRUD operations to support a volunteer management platform.

Notifications You must be signed in to change notification settings

Hossahin/HelpingHub-Project-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HelpingHub Server

Overview

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.

Tech Stack

  • Node.js with Express
  • MongoDB
  • Firebase Admin SDK
  • CORS
  • dotenv

API Endpoints

Volunteer Posts

  • 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.

Volunteer User Details

  • GET /VolunteerDetails/:email
    Get volunteer details by user email.

  • POST /VolunteerDetails
    Add volunteer details.

  • DELETE /VolunteerDetails/:id
    Delete volunteer detail by ID.

Authentication

  • POST /signup
    Register a new user.

🛠️ Local Setup Guide

Follow these steps to run the project locally:


1️⃣ Clone the Repository

https://github.com/Hossahin/HelpingHub-Project-Server.git

2️⃣ Navigate to the Project Directory

cd HelpingHub-Project-Server

3️⃣ Install Dependencies

npm install

4️⃣ Set Up Environment Variables

Create a .env file in the root directory and add the following:

DB_USER=your_database_username
DB_PASS=your_database_password

FIREBASE_SERVICE_KEY=your_firebase_key //base64

5️⃣ Start the server with:

nodemon index.js

6️⃣ Open the App in Browser

Visit the local server:

🌐 http://localhost:3000

About

HelpingHub Server is a Node.js backend providing RESTful APIs for managing volunteer posts, user details, and authentication. Using Express, MongoDB, and Firebase Admin SDK, it enables secure CRUD operations to support a volunteer management platform.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published