{"id":14957591,"url":"https://github.com/bezkoder/node-js-express-login-example","last_synced_at":"2025-04-30T18:04:27.854Z","repository":{"id":43658417,"uuid":"436125109","full_name":"bezkoder/node-js-express-login-example","owner":"bezkoder","description":"Node.js Express Login example (with Registration) using JWT, Cookies, MySQL database","archived":false,"fork":false,"pushed_at":"2024-02-04T08:32:36.000Z","size":40,"stargazers_count":156,"open_issues_count":3,"forks_count":67,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-01-17T05:06:42.786Z","etag":null,"topics":["authentication","authorization","cookie-session","express","express-js","expressjs","jwt","jwt-auth","jwt-authentication","jwt-token","login","mysql","mysql-database","mysql2","node","node-js","nodejs","token","token-based-authentication"],"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/bezkoder.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}},"created_at":"2021-12-08T05:15:52.000Z","updated_at":"2025-01-10T17:47:03.000Z","dependencies_parsed_at":"2024-02-09T08:47:08.491Z","dependency_job_id":null,"html_url":"https://github.com/bezkoder/node-js-express-login-example","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"4aae9d855179bfc163ad749bb1bbe3e6d700974c"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Fnode-js-express-login-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Fnode-js-express-login-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Fnode-js-express-login-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bezkoder%2Fnode-js-express-login-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bezkoder","download_url":"https://codeload.github.com/bezkoder/node-js-express-login-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235441797,"owners_count":18990775,"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":["authentication","authorization","cookie-session","express","express-js","expressjs","jwt","jwt-auth","jwt-authentication","jwt-token","login","mysql","mysql-database","mysql2","node","node-js","nodejs","token","token-based-authentication"],"created_at":"2024-09-24T13:15:12.377Z","updated_at":"2025-01-24T13:09:56.643Z","avatar_url":"https://github.com/bezkoder.png","language":"JavaScript","readme":"# Node.js Express Login and Registration example with JWT\n\n- Appropriate Flow for User Login and Registration with JWT Authentication\n- Node.js Express Architecture with CORS, Authentication \u0026 Authorization middlewares \u0026 Sequelize\n- How to configure Express routes to work with JWT\n- How to define Data Models and association for Authentication and Authorization\n- Way to use Sequelize to interact with MySQL Database\n\n## User Registration, User Login and Authorization process.\nThe diagram shows flow of how we implement User Registration, User Login and Authorization process.\n\n![node-js-express-login-example-flow](node-js-express-login-example-flow.png)\n\nFor more detail, please visit:\n\u003e [Node.js Express Login and Registration example with JWT](https://www.bezkoder.com/node-js-express-login-example/)\n\nFront-end that works with this Node back-end:\n- [Angular 12](https://www.bezkoder.com/angular-12-jwt-auth-httponly-cookie/) / [Angular 13](https://www.bezkoder.com/angular-13-jwt-auth-httponly-cookie/) / [Angular 14](https://www.bezkoder.com/angular-14-jwt-auth/) / [Angular 15](https://www.bezkoder.com/angular-15-jwt-auth/) / [Angular 16](https://www.bezkoder.com/angular-16-jwt-auth/) / [Angular 17](https://www.bezkoder.com/angular-17-jwt-auth/)\n- [React](https://www.bezkoder.com/react-login-example-jwt-hooks/) / [React Redux](https://www.bezkoder.com/redux-toolkit-auth/)\n\n## More Practice:\n\u003e [Build Node.js Rest APIs with Express, Sequelize \u0026 MySQL](https://www.bezkoder.com/node-js-express-sequelize-mysql/)\n\n\u003e [Server side Pagination in Node.js with Sequelize and MySQL](https://www.bezkoder.com/node-js-sequelize-pagination-mysql/)\n\n\u003e [Node.js Express File Upload Rest API example](https://www.bezkoder.com/node-js-express-file-upload/)\n\n\u003e [Node.js Express File Upload with Google Cloud Storage example](https://www.bezkoder.com/google-cloud-storage-nodejs-upload-file/)\n\n\u003e [Node.js JWT Authentication \u0026 Authorization example (using HTTP Headers)](https://www.bezkoder.com/node-js-jwt-authentication-mysql/)\n\n\u003e [Node.js JWT Authentication \u0026 Authorization example with MongoDB](https://www.bezkoder.com/node-js-mongodb-auth-jwt/)\n\nAssociations:\n\u003e [Sequelize Associations: One-to-Many Relationship example](https://www.bezkoder.com/sequelize-associate-one-to-many/)\n\n\u003e [Sequelize Associations: Many-to-Many Relationship example](https://www.bezkoder.com/sequelize-associate-many-to-many/)\n\nDeployment:\n\u003e [Deploying/Hosting Node.js app on Heroku with MySQL database](https://www.bezkoder.com/deploy-node-js-app-heroku-cleardb-mysql/)\n\n\u003e [Docker Compose: Node.js Express and MySQL example](https://www.bezkoder.com/docker-compose-nodejs-mysql/)\n\nIntegration on same Server/Port:\n\u003e [Integrate Angular with Node.js Express](https://www.bezkoder.com/integrate-angular-12-node-js/)\n\n\u003e [Integrate Vue with Node.js Express](https://www.bezkoder.com/serve-vue-app-express/)\n\n\u003e [Integrate React with Node.js Express](https://www.bezkoder.com/integrate-react-express-same-server-port/)\n\n## Project setup\n```\nnpm install\n```\n\n### Run\n```\nnode server.js\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbezkoder%2Fnode-js-express-login-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbezkoder%2Fnode-js-express-login-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbezkoder%2Fnode-js-express-login-example/lists"}