{"id":17766163,"url":"https://github.com/thedevelop3r/jobs-api-node-express-mongoose","last_synced_at":"2025-10-13T21:43:15.904Z","repository":{"id":56771634,"uuid":"524950551","full_name":"Thedevelop3r/Jobs-Api-Node-Express-Mongoose","owner":"Thedevelop3r","description":"Login/register - JavaScript | Node | Express| Json Web Token | Mongoose with front end | RESTFULL API - Create job -Update Job-Delete Job-Get Jobs-Get All Jobs","archived":false,"fork":false,"pushed_at":"2022-08-16T20:14:35.000Z","size":80,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T14:52:10.884Z","etag":null,"topics":[],"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/Thedevelop3r.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}},"created_at":"2022-08-15T10:52:48.000Z","updated_at":"2022-08-16T12:44:58.000Z","dependencies_parsed_at":"2022-08-16T02:30:29.893Z","dependency_job_id":null,"html_url":"https://github.com/Thedevelop3r/Jobs-Api-Node-Express-Mongoose","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Thedevelop3r/Jobs-Api-Node-Express-Mongoose","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thedevelop3r%2FJobs-Api-Node-Express-Mongoose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thedevelop3r%2FJobs-Api-Node-Express-Mongoose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thedevelop3r%2FJobs-Api-Node-Express-Mongoose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thedevelop3r%2FJobs-Api-Node-Express-Mongoose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Thedevelop3r","download_url":"https://codeload.github.com/Thedevelop3r/Jobs-Api-Node-Express-Mongoose/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thedevelop3r%2FJobs-Api-Node-Express-Mongoose/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017053,"owners_count":26085951,"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-13T02:00:06.723Z","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":"2024-10-26T20:23:58.508Z","updated_at":"2025-10-13T21:43:15.878Z","avatar_url":"https://github.com/Thedevelop3r.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"#### Setup\n\n```bash\nnpm install \u0026\u0026 npm start\n```\n\n#### Database Connection\n\n1. Import connect.js\n2. Invoke in start()\n3. Setup .env in the root\n4. Add MONGO_URI with correct value\n\n#### Routers\n\n- auth.js\n- jobs.js\n\n#### User Model\n\nEmail Validation Regex\n\n```regex\n/^(([^\u003c\u003e()[\\]\\\\.,;:\\s@\"]+(\\.[^\u003c\u003e()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/\n```\n\n#### Register User\n\n- Validate - name, email, password - with Mongoose\n- Hash Password (with bcryptjs)\n- Save User\n- Generate Token\n- Send Response with Token\n\n#### Login User\n\n- Validate - email, password - in controller\n- If email or password is missing, throw BadRequestError\n- Find User\n- Compare Passwords\n- If no user or password does not match, throw UnauthenticatedError\n- If correct, generate Token\n- Send Response with Token\n\n#### Mongoose Errors\n\n- Validation Errors\n- Duplicate (Email)\n- Cast Error\n\n#### Security\n\n- helmet\n- cors\n- xss-clean\n- express-rate-limit\n\nSwagger UI\n\n```yaml\n/jobs/{id}:\n  parameters:\n    - in: path\n      name: id\n      schema:\n        type: string\n      required: true\n      description: the job id\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedevelop3r%2Fjobs-api-node-express-mongoose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthedevelop3r%2Fjobs-api-node-express-mongoose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthedevelop3r%2Fjobs-api-node-express-mongoose/lists"}