├── backend ├── .env ├── controllers │ ├── Admin.js │ └── Auth.js ├── middleware │ └── verifyToken.js ├── models │ └── user.js ├── package-lock.json ├── package.json ├── routes │ ├── AdminRoutes.js │ └── Auth.js ├── server.js └── utlis │ └── db.js └── client ├── .eslintrc.cjs ├── .gitignore ├── README.md ├── index.html ├── package-lock.json ├── package.json ├── public └── vite.svg ├── src ├── App.css ├── App.jsx ├── Layouts │ ├── AdminLaouts.jsx │ ├── PublicLayouts.jsx │ └── UserLayout.jsx ├── assets │ └── react.svg ├── index.css ├── main.jsx ├── pages │ ├── Admin.jsx │ ├── Home.jsx │ ├── Login.jsx │ └── Register.jsx ├── redux │ ├── AuthSlice.js │ └── Store.js └── services │ └── ApiEndpoint.js └── vite.config.js /backend/.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zahid-afridi/Role_Base_Auth/HEAD/backend/.env -------------------------------------------------------------------------------- /backend/controllers/Admin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zahid-afridi/Role_Base_Auth/HEAD/backend/controllers/Admin.js -------------------------------------------------------------------------------- /backend/controllers/Auth.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zahid-afridi/Role_Base_Auth/HEAD/backend/controllers/Auth.js -------------------------------------------------------------------------------- /backend/middleware/verifyToken.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zahid-afridi/Role_Base_Auth/HEAD/backend/middleware/verifyToken.js -------------------------------------------------------------------------------- /backend/models/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zahid-afridi/Role_Base_Auth/HEAD/backend/models/user.js -------------------------------------------------------------------------------- /backend/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zahid-afridi/Role_Base_Auth/HEAD/backend/package-lock.json -------------------------------------------------------------------------------- /backend/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zahid-afridi/Role_Base_Auth/HEAD/backend/package.json -------------------------------------------------------------------------------- /backend/routes/AdminRoutes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zahid-afridi/Role_Base_Auth/HEAD/backend/routes/AdminRoutes.js -------------------------------------------------------------------------------- /backend/routes/Auth.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zahid-afridi/Role_Base_Auth/HEAD/backend/routes/Auth.js -------------------------------------------------------------------------------- /backend/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zahid-afridi/Role_Base_Auth/HEAD/backend/server.js -------------------------------------------------------------------------------- /backend/utlis/db.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zahid-afridi/Role_Base_Auth/HEAD/backend/utlis/db.js -------------------------------------------------------------------------------- /client/.eslintrc.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zahid-afridi/Role_Base_Auth/HEAD/client/.eslintrc.cjs -------------------------------------------------------------------------------- /client/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zahid-afridi/Role_Base_Auth/HEAD/client/.gitignore -------------------------------------------------------------------------------- /client/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zahid-afridi/Role_Base_Auth/HEAD/client/README.md -------------------------------------------------------------------------------- /client/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zahid-afridi/Role_Base_Auth/HEAD/client/index.html -------------------------------------------------------------------------------- /client/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zahid-afridi/Role_Base_Auth/HEAD/client/package-lock.json -------------------------------------------------------------------------------- /client/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zahid-afridi/Role_Base_Auth/HEAD/client/package.json -------------------------------------------------------------------------------- /client/public/vite.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zahid-afridi/Role_Base_Auth/HEAD/client/public/vite.svg -------------------------------------------------------------------------------- /client/src/App.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zahid-afridi/Role_Base_Auth/HEAD/client/src/App.css -------------------------------------------------------------------------------- /client/src/App.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zahid-afridi/Role_Base_Auth/HEAD/client/src/App.jsx -------------------------------------------------------------------------------- /client/src/Layouts/AdminLaouts.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zahid-afridi/Role_Base_Auth/HEAD/client/src/Layouts/AdminLaouts.jsx -------------------------------------------------------------------------------- /client/src/Layouts/PublicLayouts.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zahid-afridi/Role_Base_Auth/HEAD/client/src/Layouts/PublicLayouts.jsx -------------------------------------------------------------------------------- /client/src/Layouts/UserLayout.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zahid-afridi/Role_Base_Auth/HEAD/client/src/Layouts/UserLayout.jsx -------------------------------------------------------------------------------- /client/src/assets/react.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zahid-afridi/Role_Base_Auth/HEAD/client/src/assets/react.svg -------------------------------------------------------------------------------- /client/src/index.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /client/src/main.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zahid-afridi/Role_Base_Auth/HEAD/client/src/main.jsx -------------------------------------------------------------------------------- /client/src/pages/Admin.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zahid-afridi/Role_Base_Auth/HEAD/client/src/pages/Admin.jsx -------------------------------------------------------------------------------- /client/src/pages/Home.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zahid-afridi/Role_Base_Auth/HEAD/client/src/pages/Home.jsx -------------------------------------------------------------------------------- /client/src/pages/Login.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zahid-afridi/Role_Base_Auth/HEAD/client/src/pages/Login.jsx -------------------------------------------------------------------------------- /client/src/pages/Register.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zahid-afridi/Role_Base_Auth/HEAD/client/src/pages/Register.jsx -------------------------------------------------------------------------------- /client/src/redux/AuthSlice.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zahid-afridi/Role_Base_Auth/HEAD/client/src/redux/AuthSlice.js -------------------------------------------------------------------------------- /client/src/redux/Store.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zahid-afridi/Role_Base_Auth/HEAD/client/src/redux/Store.js -------------------------------------------------------------------------------- /client/src/services/ApiEndpoint.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zahid-afridi/Role_Base_Auth/HEAD/client/src/services/ApiEndpoint.js -------------------------------------------------------------------------------- /client/vite.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zahid-afridi/Role_Base_Auth/HEAD/client/vite.config.js --------------------------------------------------------------------------------