{"id":16470631,"url":"https://github.com/remrkabledev/authentication-passport","last_synced_at":"2025-10-27T14:30:49.377Z","repository":{"id":40352529,"uuid":"253535278","full_name":"reMRKableDev/authentication-passport","owner":"reMRKableDev","description":"Passport.js authentication using JWT","archived":false,"fork":false,"pushed_at":"2025-01-13T21:36:25.000Z","size":2218,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-01T06:11:16.564Z","etag":null,"topics":["authentication-passport","nodejs","passport","reactjs"],"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/reMRKableDev.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":"2020-04-06T15:14:49.000Z","updated_at":"2025-01-13T21:37:20.000Z","dependencies_parsed_at":"2024-01-06T14:25:28.654Z","dependency_job_id":"46a72193-385b-41e0-a0cc-4f7ae494af90","html_url":"https://github.com/reMRKableDev/authentication-passport","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/reMRKableDev%2Fauthentication-passport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reMRKableDev%2Fauthentication-passport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reMRKableDev%2Fauthentication-passport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reMRKableDev%2Fauthentication-passport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reMRKableDev","download_url":"https://codeload.github.com/reMRKableDev/authentication-passport/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238508592,"owners_count":19484165,"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-passport","nodejs","passport","reactjs"],"created_at":"2024-10-11T12:11:21.597Z","updated_at":"2025-10-27T14:30:48.823Z","avatar_url":"https://github.com/reMRKableDev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🛡️ Authentication with Passport.js – Node.js \u0026 React.js\n\n[![CodeFactor](https://www.codefactor.io/repository/github/remrkabledev/authentication-passport/badge)](https://www.codefactor.io/repository/github/remrkabledev/authentication-passport)\n\nThis project shows how to implement **authentication** using **Passport.js** strategies in a **full-stack application**. It covers **JWT token generation \u0026 management** between the backend (Node.js) and frontend (React.js). 🚀\n\n## 📌 Features\n\n- 🔐 **JWT Authentication** with Passport.js\n- 🔄 **Token-based authentication** between client \u0026 server\n- 🗄 **Sequelize ORM** for database interactions\n- 🌍 **REST API** for authentication flows\n- 📡 **React.js Frontend** for UI authentication flow\n\n## 🛠 Technologies\n\n### FE: React.js\n- Read more in the client-side documentation ➡ [README.md](./client/README.md)\n\n### BE: Node.js (using Express.js)\n- Read more in the server-side documentation ➡ [README.md](./server/README.md)\n\n\n## 🚀 Getting Started\n\n### 1️⃣ Clone the Repository\n```bash\ngit clone https://github.com/remrkabledev/authentication-passport.git\ncd authentication-passport\n```\n\n### 2️⃣ Install Dependencies\nRun the following in both `client/` and `server/` directories:\n\n```bash\nnpm install\n```\n\n### 3️⃣ Configure Environment Variables\n1. Navigate to `server/`\n2. Rename `.env.default` to `.env`\n3. Set up your database credentials:\n  ```plaintext\n  YOUR_DATABASE_NAME=your_db_name\n  YOUR_DATABASE_USER=your_db_user\n  YOUR_DATABASE_PASSWORD=your_db_password\n  YOUR_DATABASE_HOST=your_db_host\n  YOUR_DATABASE_DIALECT=your_db_dialect\n  ```\n\n### 4️⃣ Configure Sequelize\nModify server/config/database.js to read from .env:\n\n```javascript\nconst connector = new Sequelize(\n  process.env.YOUR_DATABASE_NAME,\n  process.env.YOUR_DATABASE_USER,\n  process.env.YOUR_DATABASE_PASSWORD,\n  {\n    host: process.env.YOUR_DATABASE_HOST,\n    dialect: process.env.YOUR_DATABASE_DIALECT,\n  }\n);\n```\n\n### 5️⃣ Run the Application\n**Start the Backend**\n```bash\ncd server\nnpm run server\n```\nTest API endpoints using Postman or cURL.\n\n**Start the Frontend**\n```bash\ncd client\nnpm start\n```\nAccess the UI at http://localhost:3000.\n\n## 🤝 Contributing\nTo contribute:\n1. Fork the repository.\n2. Create a feature branch: `git checkout -b feature-name`\n3. Commit your changes: `git commit -m \"Added new feature\"`\n4. Push to the branch: `git push origin feature-name`\n5. Open a Pull Request.\n\n---\n### Have fun 🤩\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremrkabledev%2Fauthentication-passport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fremrkabledev%2Fauthentication-passport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fremrkabledev%2Fauthentication-passport/lists"}