{"id":22819955,"url":"https://github.com/devdhera/express-ideamart","last_synced_at":"2025-03-30T23:15:38.999Z","repository":{"id":101417272,"uuid":"128608721","full_name":"DevDHera/Express-IdeaMart","owner":"DevDHera","description":null,"archived":false,"fork":false,"pushed_at":"2018-10-09T15:02:34.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T04:43:55.988Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DevDHera.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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}},"created_at":"2018-04-08T06:50:14.000Z","updated_at":"2018-10-09T15:02:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"d1287ec4-43ac-4d04-9305-14ee041284b9","html_url":"https://github.com/DevDHera/Express-IdeaMart","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevDHera%2FExpress-IdeaMart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevDHera%2FExpress-IdeaMart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevDHera%2FExpress-IdeaMart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DevDHera%2FExpress-IdeaMart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DevDHera","download_url":"https://codeload.github.com/DevDHera/Express-IdeaMart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246390859,"owners_count":20769478,"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","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-12-12T15:15:19.769Z","updated_at":"2025-03-30T23:15:38.993Z","avatar_url":"https://github.com/DevDHera.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Express-IdeaMart\n\nFully Node and Express based IdeaMart for publish new inovative ideas. \n\nPassport is used to ensure authentication.\n\n## Technologies Used\n\n* Node.js\n* Express.js\n* Passport.js\n* Handlebars\n* Flash messaging\n* MLab NoSQL Database\n\n## Steps to Run\n\nProject consists of local DB constraints. To run the project on local machine follow the steps shown below.\n\n1. Install the modules.\n```bash\nnpm install\n```\n2. Simply run the app using following.\n```bash\nnpm start\n```\n\n## Authentication \n\nProject uses Passport local strategies to authenticate users. \n\n```javascript\nmodule.exports = function(passport){\n    passport.use(new LocalStrategy({usernameField: 'email'}, (email, password, done) =\u003e {\n        //Match User\n        User.findOne({\n            email: email\n        }).then(user =\u003e {\n            if(!user){\n                return done(null, false, {message: 'No User Found'});\n            }\n\n            //Match Password\n            bcrypt.compare(password, user.password, (err, isMatch) =\u003e {\n                if(err) throw err;\n                if(isMatch){\n                    return done(null, user);\n                }else{\n                    return done(null, false, {message: 'Password Incorrect'});\n                }\n            })\n        })\n    }));\n```\n\n## Task to achive\n\n* [x] User Authentication\n* [ ] Google Auth\n* [ ] Facebook Auth\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevdhera%2Fexpress-ideamart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevdhera%2Fexpress-ideamart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevdhera%2Fexpress-ideamart/lists"}