{"id":23186328,"url":"https://github.com/saka015/role-based-auth-vr","last_synced_at":"2026-04-11T09:07:23.071Z","repository":{"id":263671684,"uuid":"891023122","full_name":"saka015/role-based-auth-vr","owner":"saka015","description":"Role Based Auth System","archived":false,"fork":false,"pushed_at":"2024-11-23T19:23:52.000Z","size":1468,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T04:45:28.331Z","etag":null,"topics":["ant-design","axios","bcrypt","body-parser","cors","expresjs","express","jwt","mongodb","mongoose","multer","nodejs","nodemailer","react","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/saka015.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":"2024-11-19T15:38:32.000Z","updated_at":"2024-12-11T06:20:02.000Z","dependencies_parsed_at":"2024-11-19T20:32:04.894Z","dependency_job_id":"0228da1b-cb70-48fe-924d-9a69af852133","html_url":"https://github.com/saka015/role-based-auth-vr","commit_stats":null,"previous_names":["saka015/role-based-auth-vr"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/saka015/role-based-auth-vr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saka015%2Frole-based-auth-vr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saka015%2Frole-based-auth-vr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saka015%2Frole-based-auth-vr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saka015%2Frole-based-auth-vr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saka015","download_url":"https://codeload.github.com/saka015/role-based-auth-vr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saka015%2Frole-based-auth-vr/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000638,"owners_count":26082819,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["ant-design","axios","bcrypt","body-parser","cors","expresjs","express","jwt","mongodb","mongoose","multer","nodejs","nodemailer","react","reactjs"],"created_at":"2024-12-18T10:15:48.392Z","updated_at":"2025-10-08T20:51:04.531Z","avatar_url":"https://github.com/saka015.png","language":"JavaScript","readme":"# Role-Based Authentication System\n\n## Overview\n\nThis project is a full-stack application providing secure user management with role-based access control (RBAC). It allows for user registration, login, and the management of users and roles by authorized administrators.\n\n## .env configuration - Backend\n\n- MONGO_URI=\n- JWT_SECRET=\n- SESSION_SECRET=\n\n### mailer data\n\n- SMTP_HOST=smtp.gmail.com\n- SMTP_PORT=465\n- SMTP_SERVICE=gmail\n- SMTP_MAIL={put your gmail here}\n- SMTP_PASSWORD={password you get from 'application password' from google account section}\n\n## Features\n\n### Authentication\n\n- User registration with email verification (optional).\n- Secure login with password hashing (bcrypt).\n- Password reset functionality via email.\n- JWT (JSON Web Tokens) for secure session management.\n\n### User Management\n\n- CRUD (Create, Read, Update, Delete) operations for users.\n- User profile management (update personal information).\n- Role assignment to users.\n\n### Role \u0026 Permission Management\n\n- CRUD operations for roles.\n- Define permissions associated with each role.\n- Granular control over access to specific features based on assigned permissions.\n\n### Admin Panel\n\n- Dedicated admin interface for managing users and roles.\n- Comprehensive logging of user actions (audit trail).\n- Send Emails to new users\n\n## Technologies Used\n\n### Frontend\n\n- React.js\n- Vite (build tool)\n- React Router DOM for navigation\n- Ant Design for UI components\n- Axios for API calls\n- SweetAlert2 for user alerts\n\n### Backend\n\n- Node.js with Express.js framework\n- MongoDB (database)\n- Mongoose (MongoDB ODM)\n- bcrypt (password hashing)\n- jsonwebtoken (JWT)\n- multer (file uploads - if applicable)\n- nodemailer (email sending - if applicable)\n- body-parser (for parsing request bodies)\n- cors (for handling Cross-Origin Resource Sharing)\n- dotenv (for environment variables)\n- express-validator (input validation)\n\n## Setup\n\n### Prerequisites\n\n- Node.js and npm (or yarn) installed.\n- MongoDB instance running (or configured for connection).\n\n### Installation\n\n1. **Clone the repository:**\n\n   ```\n   git clone \u003crepository_url\u003e\n   Use code with caution.\n   Markdown\n   Navigate to the client directory:\n   ```\n\n## frontend\n\ncd client\n\n### Install client-side dependencies:\n\nnpm install\n\n## Navigate to the server directory:\n\ncd ../server\n\n### Install server-side dependencies:\n\nnpm install\n\n# Start the development servers:\n\nBackend: nodemon index.js (or npm run start if you have a start script)\n\nFrontend: npm run dev\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaka015%2Frole-based-auth-vr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaka015%2Frole-based-auth-vr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaka015%2Frole-based-auth-vr/lists"}