{"id":28399213,"url":"https://github.com/tariqul420/node-js-starter","last_synced_at":"2026-04-07T16:32:43.060Z","repository":{"id":271226324,"uuid":"912752781","full_name":"tariqul420/node-js-starter","owner":"tariqul420","description":"Complete full-stack setup for Any web application, including front-end and back-end integration with MongoDB, Node.js, Express, jwt, React, and Firebase.","archived":false,"fork":false,"pushed_at":"2025-05-15T15:18:51.000Z","size":66,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"node","last_synced_at":"2025-10-25T05:37:56.341Z","etag":null,"topics":["cookieparser","cors","dotenv","expressjs","mongodb","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tariqul420.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-01-06T10:20:24.000Z","updated_at":"2025-05-14T16:22:42.000Z","dependencies_parsed_at":"2025-01-20T14:25:53.732Z","dependency_job_id":"35891256-7b52-48a3-a69e-f30286fdf4bb","html_url":"https://github.com/tariqul420/node-js-starter","commit_stats":null,"previous_names":["tariqul420/full-stack_server_setup","tariqul420/server_setup","tariqul420/node-js-starter"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/tariqul420/node-js-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tariqul420%2Fnode-js-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tariqul420%2Fnode-js-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tariqul420%2Fnode-js-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tariqul420%2Fnode-js-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tariqul420","download_url":"https://codeload.github.com/tariqul420/node-js-starter/tar.gz/refs/heads/node","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tariqul420%2Fnode-js-starter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31520561,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T16:28:08.000Z","status":"ssl_error","status_checked_at":"2026-04-07T16:28:06.951Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["cookieparser","cors","dotenv","expressjs","mongodb","nodejs"],"created_at":"2025-06-01T07:34:30.199Z","updated_at":"2026-04-07T16:32:43.027Z","avatar_url":"https://github.com/tariqul420.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node.js Starter Project\n\nA Node.js starter project with Express and MongoDB.\n\n## Features\n\n- Express.js server\n- MongoDB integration with native driver\n- JWT authentication\n- User management\n- Error handling\n- Environment variable configuration\n\n## Setup\n\n1. Clone the repository\n2. Install dependencies:\n   ```\n   npm install\n   ```\n3. Create a `.env` file based on the `.env.example` file and fill in your credentials\n\n## Environment Variables\n\nCreate a `.env` file with the following variables:\n\n```\nPORT=3000\nNODE_ENV=development\n\n# MongoDB Atlas credentials\nDATABASE_USERNAME=your_mongodb_username\nDATABASE_PASSWORD=your_mongodb_password\n\n# JWT Secret\nACCESS_TOKEN_SECRET=your_jwt_secret_key_here\n```\n\n## Running the Application\n\nDevelopment mode:\n\n```\nnpm run dev\n```\n\nProduction mode:\n\n```\nnpm start\n```\n\n## API Endpoints\n\n### Authentication\n\n- `POST /api/jwt`: Generate JWT token\n- `POST /api/jwt/logout`: Logout (clear cookie)\n\n### User Management\n\n- `POST /api/user`: Create a new user\n- `PATCH /api/user/:email`: Update user information\n- `GET /api/user/role/:email`: Get user role (requires authentication)\n\n## Project Structure\n\n```\nsrc/\n  ├── config/\n  │   ├── config.js\n  │   └── db.js\n  ├── controllers/\n  │   ├── jwtController.js\n  │   └── userController.js\n  ├── middleware/\n  │   ├── auth.middleware.js\n  │   └── error.middleware.js\n  ├── routers/\n  │   ├── jwtRoutes.js\n  │   └── userRoutes.js\n  ├── app.js\n  └── server.js\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftariqul420%2Fnode-js-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftariqul420%2Fnode-js-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftariqul420%2Fnode-js-starter/lists"}