{"id":28421240,"url":"https://github.com/manishsinghtomar/backend_code","last_synced_at":"2026-04-30T22:37:10.832Z","repository":{"id":296511065,"uuid":"993567220","full_name":"manishsinghtomar/Backend_Code","owner":"manishsinghtomar","description":"mern stack backend code files","archived":false,"fork":false,"pushed_at":"2025-05-31T08:16:48.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-30T22:36:31.890Z","etag":null,"topics":["backend","backend-development","expressjs","mongodb","mvc-architecture","nodejs","rest"],"latest_commit_sha":null,"homepage":"","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/manishsinghtomar.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,"zenodo":null}},"created_at":"2025-05-31T03:20:37.000Z","updated_at":"2025-05-31T08:16:51.000Z","dependencies_parsed_at":"2025-05-31T19:05:45.761Z","dependency_job_id":"83432bed-2911-41bf-9135-07f6e9cd8c9b","html_url":"https://github.com/manishsinghtomar/Backend_Code","commit_stats":null,"previous_names":["manishsinghtomar/backend_code"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/manishsinghtomar/Backend_Code","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manishsinghtomar%2FBackend_Code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manishsinghtomar%2FBackend_Code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manishsinghtomar%2FBackend_Code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manishsinghtomar%2FBackend_Code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manishsinghtomar","download_url":"https://codeload.github.com/manishsinghtomar/Backend_Code/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manishsinghtomar%2FBackend_Code/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32479448,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["backend","backend-development","expressjs","mongodb","mvc-architecture","nodejs","rest"],"created_at":"2025-06-05T05:15:20.777Z","updated_at":"2026-04-30T22:37:05.818Z","avatar_url":"https://github.com/manishsinghtomar.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n---\n\n# MERN Stack Backend Repository\n\n## 🚀 Introduction\nThis repository contains the backend code for a **MERN stack application**, built using **Node.js** and **Express.js**, with **MongoDB** as the database.\n\n## 📌 Features\n- **Authentication \u0026 Authorization** (JWT-based)\n- **CRUD Operations** (Create, Read, Update, Delete)\n- **MongoDB Connection** using Mongoose\n- **RESTful API** for frontend communication\n- **Validation \u0026 Error Handling**\n- **Middleware Implementation** (Logging, Security, etc.)\n- **Environment Variables** support using `.env`\n\n## 🛠️ Tech Stack\n- **Node.js** - JavaScript Runtime\n- **Express.js** - Backend Framework\n- **MongoDB \u0026 Mongoose** - Database \u0026 ODM\n- **JSON Web Token (JWT)** - Authentication\n- **dotenv** - Environment Variables\n- **Cors** - Cross-Origin Resource Sharing\n\n## 🔧 Installation \u0026 Setup\n### Clone the Repository:\n```sh\ngit clone \u003cyour-repo-url\u003e\ncd backend-folder\n```\n\n### Install Dependencies:\n```sh\nnpm install\n```\n\n### Setup Environment Variables:\nCreate a `.env` file in the root and configure:\n```\nPORT=5000\nMONGO_URI=\u003cyour-mongodb-uri\u003e\nJWT_SECRET=\u003cyour-secret-key\u003e\n```\n\n### Run the Server:\n```sh\nnpm start\n```\nor for **development** with **nodemon**:\n```sh\nnpm run dev\n```\n\n## 📡 API Endpoints\n| Method | Endpoint         | Description       |\n|--------|-----------------|-------------------|\n| GET    | `/api/users`    | Fetch all users  |\n| POST   | `/api/users`    | Create a user    |\n| PUT    | `/api/users/:id` | Update user      |\n| DELETE | `/api/users/:id` | Delete user      |\n\n## 📚 Folder Structure\n```\nbackend/\n│── config/       # Database connection \u0026 env configs\n│── controllers/  # API Logic\n│── middleware/   # Auth \u0026 Logging Middleware\n│── models/      # MongoDB Models\n│── routes/      # API Routes\n│── utils/       # Helper Functions\n│── server.js    # Entry Point\n```\n\n## 🚀 Deployment\n### Deploy to **Heroku**, **Vercel**, or **Render**\n1. **Add a Procfile for Heroku**:\n   ```\n   web: node server.js\n   ```\n\n2. **Push code to GitHub**:\n   ```sh\n   git add .\n   git commit -m \"Deploy-ready commit\"\n   git push origin main\n   ```\n\n3. **Set environment variables in the host** (Heroku/Vercel/Render)\n\n4. **Deploy using CLI or Web Interface**\n\n---\n\n## 📜 License\nThis project is **MIT Licensed**. You are free to use, modify, and distribute.\n\n---\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanishsinghtomar%2Fbackend_code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanishsinghtomar%2Fbackend_code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanishsinghtomar%2Fbackend_code/lists"}