MERN-role-based-boilerplate-源码

上传者: 42116681 | 上传时间: 2021-03-09 19:04:32 | 文件大小: 204KB | 文件类型: ZIP
是 节点和Express服务器 简单的用户身份验证机制 基本路由保护也已启用 实施JWT ,基于令牌的身份验证 还添加了基于角色的身份验证示例代码 表达asyncHandler包装机制,用于处理异步错误 路由和中间件的详细信息得到了很好的评论 将dotenv用于环境变量(config.env) 在配置文件夹(db.js)中用于Db连接的猫鼬 强大的快速中间件(头盔等),用于防止基本攻击(XXS,NoSQL注入) 有限元 使用React和Redux构建 更新了Redux Hooks用法(useSelector和useDispatch) 使用redux-thunk处理异步代码 添加了基本的可自定义CSS以便于使用 Axios的api请求 删除了测试和多余的文件 设置 安装客户端和服务器依赖项。 npm run setup 开发人员 要同时运行两端。 npm run dev 使用Node

文件下载

资源详情

[{"title":"( 32 个子文件 204KB ) MERN-role-based-boilerplate-源码","children":[{"title":"MERN-role-based-boilerplate-master","children":[{"title":"models","children":[{"title":"User.js <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false}],"spread":true},{"title":"server.js <span style='color:#111;'> 1.70KB </span>","children":null,"spread":false},{"title":"client","children":[{"title":"public","children":[{"title":"index.html <span style='color:#111;'> 458B </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"redux","children":[{"title":"_actions","children":[{"title":"authAction.js <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"alertAction.js <span style='color:#111;'> 326B </span>","children":null,"spread":false}],"spread":true},{"title":"_reducers","children":[{"title":"authReducer.js <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false},{"title":"alertReducer.js <span style='color:#111;'> 335B </span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'> 204B </span>","children":null,"spread":false}],"spread":true},{"title":"types.js <span style='color:#111;'> 428B </span>","children":null,"spread":false}],"spread":true},{"title":"utils","children":[{"title":"setAuthToken.js <span style='color:#111;'> 249B </span>","children":null,"spread":false}],"spread":true},{"title":"components","children":[{"title":"partials","children":[{"title":"Navbar.js <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"Alerts.js <span style='color:#111;'> 394B </span>","children":null,"spread":false}],"spread":true},{"title":"pages","children":[{"title":"LandingPage.js <span style='color:#111;'> 500B </span>","children":null,"spread":false},{"title":"Home.js <span style='color:#111;'> 1.11KB </span>","children":null,"spread":false}],"spread":true},{"title":"auth","children":[{"title":"Login.js <span style='color:#111;'> 1.78KB </span>","children":null,"spread":false},{"title":"Register.js <span style='color:#111;'> 2.08KB </span>","children":null,"spread":false}],"spread":true},{"title":"routing","children":[{"title":"PrivateRoute.js <span style='color:#111;'> 408B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"App.js <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"App.css <span style='color:#111;'> 5.14KB </span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'> 619B </span>","children":null,"spread":false}],"spread":true},{"title":"package-lock.json <span style='color:#111;'> 607.18KB </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 982B </span>","children":null,"spread":false}],"spread":true},{"title":"controllers","children":[{"title":"auth.js <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false}],"spread":true},{"title":"middleware","children":[{"title":"auth.js <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"async.js <span style='color:#111;'> 249B </span>","children":null,"spread":false}],"spread":true},{"title":"config","children":[{"title":"db.js <span style='color:#111;'> 298B </span>","children":null,"spread":false},{"title":"config.env <span style='color:#111;'> 187B </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 198B </span>","children":null,"spread":false},{"title":"routes","children":[{"title":"auth.js <span style='color:#111;'> 442B </span>","children":null,"spread":false}],"spread":true},{"title":"package-lock.json <span style='color:#111;'> 107.33KB </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 939B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明