{"id":49727495,"url":"https://github.com/vagman/nodejs-course","last_synced_at":"2026-05-09T05:14:13.322Z","repository":{"id":310198580,"uuid":"1027145464","full_name":"vagman/nodejs-course","owner":"vagman","description":"42 hour Udemy course by Jonas Schmedtmann: Node.js, Express.js \u0026 MongoDB","archived":false,"fork":false,"pushed_at":"2025-12-04T21:12:59.000Z","size":52253,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-04T23:54:41.714Z","etag":null,"topics":["authentication","backend-development","mongodb","nodejs","restful-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"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/vagman.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-07-27T12:12:20.000Z","updated_at":"2025-12-02T05:51:53.000Z","dependencies_parsed_at":"2025-10-23T16:20:15.050Z","dependency_job_id":null,"html_url":"https://github.com/vagman/nodejs-course","commit_stats":null,"previous_names":["vagman/nodejs-course"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vagman/nodejs-course","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vagman%2Fnodejs-course","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vagman%2Fnodejs-course/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vagman%2Fnodejs-course/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vagman%2Fnodejs-course/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vagman","download_url":"https://codeload.github.com/vagman/nodejs-course/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vagman%2Fnodejs-course/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32807950,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"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":["authentication","backend-development","mongodb","nodejs","restful-api"],"created_at":"2026-05-09T05:14:12.661Z","updated_at":"2026-05-09T05:14:13.312Z","avatar_url":"https://github.com/vagman.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Node.js, Express, MongoDB Course\n\n### Deleting and reuploading DB data\n1. Move to directory: ```cd .\\dev-data\\data```\n2. Delete MongoDB data: ```node import-dev-data.js --delete```\n3. Comment the following pre-save middleware in ```\\models\\userModel.js```:\n\n   ```javascript\n   userSchema.pre('save', async function (next) {\n     if (!this.isModified('password')) return next();\n     this.password = await bcrypt.hash(this.password, 12);\n     this.passwordConfirm = undefined;\n     next();\n   });\n   ```\n\n5. Reuploading data: ```node import-dev-data.js --import```\n6. Remove comments so encryption works normally again when signing up as a new user.\n7. Check with MongoDB Compass just to make sure: Ctrl + R for a refresh.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvagman%2Fnodejs-course","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvagman%2Fnodejs-course","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvagman%2Fnodejs-course/lists"}