{"id":18788600,"url":"https://github.com/passport/todos-express-password","last_synced_at":"2025-05-16T08:03:22.039Z","repository":{"id":36473894,"uuid":"40779364","full_name":"passport/todos-express-password","owner":"passport","description":"Todo app using Express and Passport for sign in with username and password.","archived":false,"fork":false,"pushed_at":"2023-12-05T12:46:31.000Z","size":1268,"stargazers_count":895,"open_issues_count":8,"forks_count":416,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-05-08T02:25:17.479Z","etag":null,"topics":["example","express","nodejs","passport","password","sqlite"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/passport.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"jaredhanson"}},"created_at":"2015-08-15T19:07:55.000Z","updated_at":"2025-04-26T09:37:43.000Z","dependencies_parsed_at":"2022-08-25T04:11:14.632Z","dependency_job_id":"a0a470e0-7b82-4c93-8907-709bcfa35b38","html_url":"https://github.com/passport/todos-express-password","commit_stats":{"total_commits":184,"total_committers":5,"mean_commits":36.8,"dds":"0.021739130434782594","last_synced_commit":"0505c28e2295ec2c642dc9e8e0f6107e7ba0f8aa"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passport%2Ftodos-express-password","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passport%2Ftodos-express-password/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passport%2Ftodos-express-password/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/passport%2Ftodos-express-password/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/passport","download_url":"https://codeload.github.com/passport/todos-express-password/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253736529,"owners_count":21955874,"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":["example","express","nodejs","passport","password","sqlite"],"created_at":"2024-11-07T21:05:22.168Z","updated_at":"2025-05-16T08:03:22.015Z","avatar_url":"https://github.com/passport.png","language":"JavaScript","funding_links":["https://github.com/sponsors/jaredhanson"],"categories":[],"sub_categories":[],"readme":"# todos-express-password\n\nThis app illustrates how to use [Passport](https://www.passportjs.org/) with\n[Express](https://expressjs.com/) to sign users in with a username and password.\nUse this example as a starting point for your own web applications.\n\n## Quick Start\n\nTo run this app, clone the repository and install dependencies:\n\n```bash\n$ git clone https://github.com/passport/todos-express-password.git\n$ cd todos-express-password\n$ npm install\n```\n\nThen start the server.\n\n```bash\n$ npm start\n```\n\nNavigate to [`http://localhost:3000`](http://localhost:3000).\n\n## Tutorial\n\nFollow along with the step-by-step [Username \u0026 Password Tutorial](https://www.passportjs.org/tutorials/password/)\nto learn how this app was built.\n\n## Overview\n\nThis app illustrates how to build a todo app with sign in functionality using\nExpress, Passport, and the [`passport-local`](https://www.passportjs.org/packages/passport-local/)\nstrategy.\n\nThis app is a traditional web application, in which application logic and data\npersistence resides on the server.  HTML pages and forms are rendered by the\nserver and client-side JavaScript is not utilized (or kept to a minimum).\n\nThis app is built using the Express web framework.  Data is persisted to a\n[SQLite](https://www.sqlite.org/) database.  HTML pages are rendered using [EJS](https://ejs.co/)\ntemplates, and are styled using vanilla CSS.\n\nWhen a user first arrives at this app, they are prompted to sign in.  Once\nauthenticated, a login session is established and maintained between the server\nand the user's browser with a cookie.\n\nAfter signing in, the user can view, create, and edit todo items.  Interaction\noccurs by clicking links and submitting forms, which trigger HTTP requests.\nThe browser automatically includes the cookie set during login with each of\nthese requests.\n\nWhen the server receives a request, it authenticates the cookie and restores the\nlogin session, thus authenticating the user.  It then accesses or stores records\nin the database associated with the authenticated user.\n\n## Next Steps\n\n* Extend with credential management.\n\n  Study [todos-express-password-credential-management](https://github.com/passport/todos-express-password-credential-management)\n  to learn how to use the [Credential Managment](https://www.w3.org/TR/credential-management-1/)\n  API to help the user store and select their password.\n\n* Add social login.\n\n  Study [todos-express-google](https://github.com/passport/todos-express-google)\n  to learn how to let users sign in with their social network account, using\n  their existing profile and avoiding the need to sign up and repeatedly enter\n  account details.\n\n* Add passwordless.\n\n  Study [todos-express-webauthn](https://github.com/passport/todos-express-webauthn)\n  to learn how to let users sign in with biometrics or a security key.\n\n## License\n\n[The Unlicense](https://opensource.org/licenses/unlicense)\n\n## Credit\n\nCreated by [Jared Hanson](https://www.jaredhanson.me/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpassport%2Ftodos-express-password","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpassport%2Ftodos-express-password","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpassport%2Ftodos-express-password/lists"}