{"id":27946068,"url":"https://github.com/krishit-shah/authly","last_synced_at":"2025-05-07T13:47:53.294Z","repository":{"id":289157254,"uuid":"970295184","full_name":"Krishit-Shah/authly","owner":"Krishit-Shah","description":"Secure MERN Stack Authentication App with Email OTP, JWT, Password Reset","archived":false,"fork":false,"pushed_at":"2025-05-04T08:59:33.000Z","size":208,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-04T09:25:26.041Z","etag":null,"topics":["auth-system","authentication","fullstack","jwt","mern","node-js","otp-auth","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/Krishit-Shah.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}},"created_at":"2025-04-21T19:42:35.000Z","updated_at":"2025-05-04T09:05:14.000Z","dependencies_parsed_at":"2025-04-21T21:23:50.660Z","dependency_job_id":"06bf2f25-8500-4b29-82b4-bc6baf354266","html_url":"https://github.com/Krishit-Shah/authly","commit_stats":null,"previous_names":["krishit-shah/authly"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krishit-Shah%2Fauthly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krishit-Shah%2Fauthly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krishit-Shah%2Fauthly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krishit-Shah%2Fauthly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Krishit-Shah","download_url":"https://codeload.github.com/Krishit-Shah/authly/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252890433,"owners_count":21820391,"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":["auth-system","authentication","fullstack","jwt","mern","node-js","otp-auth","reactjs"],"created_at":"2025-05-07T13:47:52.651Z","updated_at":"2025-05-07T13:47:53.282Z","avatar_url":"https://github.com/Krishit-Shah.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🔐 Authly – Secure Auth System (MERN)\r\n\r\n\u003e A full-stack authentication system with Email OTP verification, password reset, JWT protection, and clean UI using Bootstrap.\r\n\r\n## 🚀 Features\r\n\r\n- 🔐 User Signup + Login with JWT\r\n- 📧 OTP Verification via Email during Signup\r\n- 🛡️ Protected Dashboard (Private Route)\r\n- 🔁 Forgot Password with Email Reset Link\r\n- 🎨 Bootstrap 5 UI + Toast Notifications\r\n- 🔒 Secure Password Hashing using bcrypt\r\n- ✉️ Nodemailer-based Email Service\r\n- 🧠 Temporary in-memory store for OTP\r\n- 🗂️ Fully structured: `frontend/` + `backend/`\r\n\r\n---\r\n## 🧪 How to Run the Project Locally\r\n\r\n### 1. 📦 Clone the Repository \r\n\r\n```bash\r\ngit clone https://github.com/Krishit-Shah/authly.git\r\ncd authly\r\n```\r\n### 2.⚙️ Backend Setup\r\n```bash\r\ncd backend\r\nnpm install\r\n```\r\n📁 Create a `.env` file inside `backend/` with the following environment variables:\r\n```bash\r\nPORT=5000\r\nMONGO_URI=mongodb://localhost:27017/authly\r\nJWT_SECRET=supersecretkey\r\nEMAIL_USER=your_email@gmail.com\r\nEMAIL_PASS=your_app_password\r\nCLIENT_URL=http://localhost:3000\r\n```\r\n\r\n🔐 Note: Use a Gmail App Password if you have 2FA enabled.\r\n\r\n### Start the backend server:\r\n```bash \r\nnpm start\r\n```\r\n🌐 Server runs at: http://localhost:5000\r\n\r\n### 3.💻 Frontend Setup\r\n```bash\r\ncd ../frontend\r\nnpm install\r\nnpm start\r\n```\r\n🌐 Frontend runs at: http://localhost:3000\r\n\r\n## 4.📦 Installed Dependencies\r\n\r\n### 🔧 Backend\r\n\r\n- express\r\n- mongoose\r\n- dotenv\r\n- bcryptjs\r\n- jsonwebtoken\r\n- nodemailer\r\n- cors\r\n\r\n```bash\r\nnpm install express mongoose dotenv bcryptjs jsonwebtoken nodemailer cors\r\n```\r\n\r\n### 💻 Frontend\r\n- react\r\n- react-dom\r\n- react-router-dom\r\n- axios\r\n- react-toastify\r\n- bootstrap\r\n```bash\r\nnpm install react react-dom react-router-dom axios react-toastify bootstrap\r\n```\r\n---\r\n\r\n## 🛠️ Tech Stack\r\n\r\n| 🔧 Frontend   | ⚙️ Backend | 🔐 Security | 🧰 Tools |\r\n|--------------|------------|-------------|-------------|\r\n| React        | Node.js    | JWT         | Toastify    |\r\n| Bootstrap 5  | Express    | Bcrypt.js   | Nodemailer  |\r\n| React Router | MongoDB    | OTP Emails  | Dotenv      |\r\n\r\n## 👨‍💻 Author\r\nKrishit Shah\r\n- A complete MERN stack authentication solution built with a focus on security, scalability, and clean architecture.\r\n\r\n## 📄 License\r\n- This project is free to use for learning and educational purposes.\r\n\r\n## 📝 Contributing\r\n- Contributions are welcome. Please submit a pull request with your changes.\r\n\r\n## 🚨 Issues\r\n- Please report any issues or bugs in the `issues` section.\r\n## 📈 Future Development\r\n\r\n- 🔐 Google OAuth Login using `react-oauth/google`  \r\n- 🌗 Light/Dark Mode toggle with persistent theme storage  \r\n- 🧩 Admin-only dashboard with role-based access control  \r\n- 📱 Fully mobile-optimized layout using Bootstrap grid  \r\n- 💬 Custom error handling with user-friendly messages  \r\n- 🔁 Resend OTP with cooldown + expiration UI  \r\n- 🧾 In-app activity logs (user actions \u0026 login history)  \r\n- 🌍 Deployment to Render (backend) + Vercel (frontend) with custom domain  \r\n- 🧠 Migration from in-memory store to Redis for OTP in production\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrishit-shah%2Fauthly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrishit-shah%2Fauthly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrishit-shah%2Fauthly/lists"}