{"id":23176608,"url":"https://github.com/yashsuthar00/nodejs-contact-manager-app","last_synced_at":"2026-05-05T14:32:57.462Z","repository":{"id":268446568,"uuid":"904369038","full_name":"yashsuthar00/nodeJs-CONTACT-MANAGER-APP","owner":"yashsuthar00","description":"A Node.js backend application for managing contacts, featuring JWT-based authentication, CRUD operations with MongoDB, and secure API endpoints.","archived":false,"fork":false,"pushed_at":"2025-01-09T19:58:37.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-04T15:02:15.601Z","etag":null,"topics":["backend","express","mongodb","mongodb-atlas","nodejs"],"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/yashsuthar00.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":"2024-12-16T18:51:42.000Z","updated_at":"2025-01-10T08:04:00.000Z","dependencies_parsed_at":"2024-12-16T20:42:41.250Z","dependency_job_id":"0bde1278-5ef5-48d8-b661-0ed361b77a40","html_url":"https://github.com/yashsuthar00/nodeJs-CONTACT-MANAGER-APP","commit_stats":null,"previous_names":["yashsuthar00/nodejs-contact-manager-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yashsuthar00/nodeJs-CONTACT-MANAGER-APP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashsuthar00%2FnodeJs-CONTACT-MANAGER-APP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashsuthar00%2FnodeJs-CONTACT-MANAGER-APP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashsuthar00%2FnodeJs-CONTACT-MANAGER-APP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashsuthar00%2FnodeJs-CONTACT-MANAGER-APP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yashsuthar00","download_url":"https://codeload.github.com/yashsuthar00/nodeJs-CONTACT-MANAGER-APP/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yashsuthar00%2FnodeJs-CONTACT-MANAGER-APP/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32653552,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"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":["backend","express","mongodb","mongodb-atlas","nodejs"],"created_at":"2024-12-18T06:18:27.626Z","updated_at":"2026-05-05T14:32:57.447Z","avatar_url":"https://github.com/yashsuthar00.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Contact Management System\n\nA Node.js-based backend application designed to manage contact information efficiently. This project features user authentication and authorization using JWT, CRUD operations integrated with a MongoDB database, and secure API routes.\n\n## Features\n\n- **User Authentication \u0026 Authorization**:\n  - Register and log in users securely.\n  - Token-based authentication using JSON Web Tokens (JWT).\n  - Role-based access control for different levels of functionality.\n\n- **CRUD Operations**:\n  - Create, Read, Update, and Delete contacts.\n  - Data persistence with MongoDB.\n\n- **API Routes**:\n  - Organized and secure API endpoints.\n  - Authentication middleware to protect routes.\n\n## Tech Stack\n\n- **Backend**: Node.js, Express.js\n- **Database**: MongoDB\n- **Authentication**: JWT\n\n## Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/yashsuthar00/nodeJs-CONTACT-MANAGER-APP.git\n   cd contact-management-system\n\n2. Install dependencies:\n\n    ```bash\n    npm install\n\n3. Set up environment variables:\n\n- Create a `.env` file in the root directory.\n- Add the following keys:\n    ```makefile\n    PORT=5000\n    CONNECTION_STRING=your-mongodb-connection-string\n    ACCESS_TOKEN_SECRET=your-jwt-secret\n\n4. Start the server:\n\n    ```\n    npm start\n\n5. Access the application:\n\n- Base URL: `http://localhost:5000`\n\n## API Endpoints\n\n### Authentication Routes\n\n- **POST /api/users/register**: Register a new user.\n- **POST /api/users/login**: Authenticate a user and return a JWT.\n- **GET /api/users/current**: Shows the current authenticated user.\n### Contact Routes\n\n- **GET /api/contacts**: Get all contacts (protected).\n- **POST /api/contacts**: Add a new contact (protected).\n- **GET /api/contacts/:id**: Get a single contact by ID (protected).\n- **PUT /api/contacts/:id**: Update a contact by ID (protected).\n- **DELETE /api/contacts/:id**: Delete a contact by ID (protected).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyashsuthar00%2Fnodejs-contact-manager-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyashsuthar00%2Fnodejs-contact-manager-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyashsuthar00%2Fnodejs-contact-manager-app/lists"}