{"id":51691466,"url":"https://github.com/devjubayr/nextube_backend","last_synced_at":"2026-07-16T02:34:21.706Z","repository":{"id":310669870,"uuid":"1040753870","full_name":"devjubayr/nextube_backend","owner":"devjubayr","description":"A professional backend structure for industry level application.","archived":false,"fork":false,"pushed_at":"2025-10-06T19:09:39.000Z","size":25738,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-18T07:27:16.458Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/devjubayr.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-19T13:06:48.000Z","updated_at":"2025-10-06T19:09:42.000Z","dependencies_parsed_at":"2025-08-19T15:35:11.473Z","dependency_job_id":"5f5b2ef7-3459-48bb-99f4-d6dcd097f78a","html_url":"https://github.com/devjubayr/nextube_backend","commit_stats":null,"previous_names":["mr-jubayer/nodejs_backend","jubayerahmed2/nodejs_backend","crosbow/nextube_backend","devjubayr/nextube_backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devjubayr/nextube_backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devjubayr%2Fnextube_backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devjubayr%2Fnextube_backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devjubayr%2Fnextube_backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devjubayr%2Fnextube_backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devjubayr","download_url":"https://codeload.github.com/devjubayr/nextube_backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devjubayr%2Fnextube_backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35528482,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-16T02:00:06.687Z","response_time":83,"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":"2026-07-16T02:34:20.883Z","updated_at":"2026-07-16T02:34:21.700Z","avatar_url":"https://github.com/devjubayr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NodeJS_Backend\n\nA basic Node.js backend boilerplate setup.\n\n---\n\n## 🚀 Project Setup Step by Step\n\n### 1. Initialize Project\n\n```bash\nnpm init -y\n```\n\n### 2. Install Dev Dependencies\n\n```bash\nnpm i -D nodemon\n```\n\n\u003e `nodemon` reloads the server automatically when code changes. The `-D` flag ensures it is installed as a dev dependency only.\n\n### 2.5. Install Dev Dependencies\n\n\u003e Set `\"type\": \"module\"` in package.json file\n\n### 3. Configure Git\n\n- Create a `.gitignore` file to prevent pushing unnecessary files (e.g., `node_modules`, `.env`).\n- Use this [Gitignore Generator](https://mrkandreev.name/snippets/gitignore-generator/#).\n\n### 4. Project Structure\n\n```bash\nIn root: public/temp/.gitkeep\nIn src/: index.js app.js constants.js\nFolders Inside /src: controllers models routes middlewares db utils\n```\n\n### 5. File Naming Convention\n\n- Controllers → `example.controller.js`\n- Models → `example.model.js`\n- Routes → `example.route.js`\n- Middlewares → `example.middleware.js`\n\n### 6. Add .env and .env.sample\n\n- Create two file .env for local environment variables\n- And .env.sample for uploading to github (Don't share privet key or any code here)\n\n### 7. Install prettier\n\n- Prettier removes bike-shedding about code style, keeps your codebase consistent, and lets you focus on writing logic, not spacing.\n- Create `.prettierrc` for telling formats\n- Create `.prettierignore` for ignore file where we don't need the feature\n- \u003e Only in Dev \"-D\": `npm i -D prettier`\n\n---\n\n## 📂 Folder Structure\n\n```\nproject-root\n│── node_modules\n│── public\n│   └── temp\n│       └── .gitkeep\n│── src\n│   ├── app.js\n│   ├── index.js\n│   ├── constants.js\n│   ├── controllers/\n│   ├── models/\n│   ├── routes/\n│   ├── middlewares/\n│   ├── db/\n│   └── utils/\n│── package.json\n│── .gitignore\n```\n\n---\n\n## 🛠️ Scripts\n\nIn `package.json`, add:\n\n```json\n\"scripts\": {\n  \"start\": \"node src/index.js\",\n  \"dev\": \"nodemon src/index.js\"\n}\n```\n\nRun in development mode:\n\n```bash\nnpm run dev\n```\n\n---\n\n✅ Setup complete! Now Install techs based on need.\n\n## Top important packages\n\n- mongodb\n- mongoose\n- express\n- dotenv\n- cors\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevjubayr%2Fnextube_backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevjubayr%2Fnextube_backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevjubayr%2Fnextube_backend/lists"}