{"id":24322326,"url":"https://github.com/saagor16/b9a12-server-campushub","last_synced_at":"2025-10-26T04:33:18.249Z","repository":{"id":272145356,"uuid":"823153842","full_name":"saagor16/B9A12-server-CampusHub","owner":"saagor16","description":"The server-side implementation of CampusHub powers the backend functionalities, including secure user authentication, meal management, and seamless integration with the frontend. Built with robust technologies, the server ensures efficient data handling and API communication.","archived":false,"fork":false,"pushed_at":"2025-01-12T13:12:52.000Z","size":3426,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-11T18:46:12.762Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://b9a12-campushub.web.app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/saagor16.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-02T13:56:18.000Z","updated_at":"2025-01-12T13:13:14.000Z","dependencies_parsed_at":"2025-01-12T14:25:52.306Z","dependency_job_id":"4f3ebac2-c998-489b-a29c-6e247ee50498","html_url":"https://github.com/saagor16/B9A12-server-CampusHub","commit_stats":null,"previous_names":["saagor16/b9a12-server-campushub"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/saagor16/B9A12-server-CampusHub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saagor16%2FB9A12-server-CampusHub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saagor16%2FB9A12-server-CampusHub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saagor16%2FB9A12-server-CampusHub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saagor16%2FB9A12-server-CampusHub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saagor16","download_url":"https://codeload.github.com/saagor16/B9A12-server-CampusHub/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saagor16%2FB9A12-server-CampusHub/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281059642,"owners_count":26437056,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-26T02:00:06.575Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-17T17:55:11.794Z","updated_at":"2025-10-26T04:33:18.222Z","avatar_url":"https://github.com/saagor16.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CampusHub Server\n\nThe server-side implementation of CampusHub powers the backend functionalities, including secure user authentication, meal management, and seamless integration with the frontend. Built with robust technologies, the server ensures efficient data handling and API communication.\n\n## Live Links\n- **Server Repository:** [CampusHub Server](https://github.com/saagor16/B9A12-server-CampusHub)\n- **Frontend Repository:** [CampusHub Frontend](https://github.com/saagor16/B9A12-Cline-CampusHub)\n- **Live Site:** [CampusHub Live Site](https://b9a12-campushub.web.app/)\n\n## Features\n\n1. **User Authentication**\n   - Secure user authentication using JWT for session management.\n\n2. **Meal Management API**\n   - Provides CRUD operations for meal management, enabling admins to add, update, delete, and retrieve meal data.\n\n3. **Review and Rating Management**\n   - Handles reviews and ratings submitted by users, storing them in the database.\n\n4. **Payment Integration**\n   - Processes payments securely through Stripe API integration.\n\n5. **Real-Time Notifications**\n   - Implements notification triggers for CRUD operations.\n\n6. **Robust Error Handling**\n   - Includes middleware for centralized error handling and enhanced API responses.\n\n7. **Cross-Origin Resource Sharing (CORS)**\n   - Configured to allow secure communication between the frontend and backend.\n\n## Tech Stack\n\n- **Node.js**: A runtime environment for executing server-side JavaScript code.\n- **Express.js**: A fast and lightweight framework for building RESTful APIs.\n- **MongoDB**: A NoSQL database for scalable and efficient data storage.\n- **JWT (JSON Web Tokens)**: Ensures secure authentication and session management.\n- **Stripe API**: Integrates payment functionalities for secure transactions.\n\n## How to Run the Server Locally\n\n1. **Clone the Repository**\n   ```bash\n   git clone https://github.com/saagor16/B9A12-server-CampusHub.git\n   cd B9A12-server-CampusHub\n   ```\n\n2. **Install Dependencies**\n   ```bash\n   npm install\n   ```\n\n3. **Set Up Environment Variables**\n   - Create a `.env` file in the root directory and include the following:\n     ```env\n     PORT=5000\n     MONGO_URI=your_mongodb_connection_string\n     JWT_SECRET=your_jwt_secret\n     STRIPE_SECRET_KEY=your_stripe_secret_key\n     ```\n\n4. **Run the Server**\n   ```bash\n   npm start\n   ```\n   The server will be running at `http://localhost:5000`.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaagor16%2Fb9a12-server-campushub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaagor16%2Fb9a12-server-campushub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaagor16%2Fb9a12-server-campushub/lists"}