nodejs-ejs-mysql:使用ejs作为模板引擎的基于Node.js的示例项目

时间:2021-05-13 03:09:41
【文件属性】:
文件名称:nodejs-ejs-mysql:使用ejs作为模板引擎的基于Node.js的示例项目
文件大小:10KB
文件格式:ZIP
更新时间:2021-05-13 03:09:41
JavaScript 使用MySQL进行节点身份验证的完整指南 整个scotch.io教程系列的代码:使用MongoDB进行节点身份验证的完整指南 当前版本数据库已移植到MySQL 我们将使用Passport在本地对用户进行身份验证, 指示 如果您想下载代码并自己尝试: 克隆仓库: https://github.com/dilagurung/nodejs-ejs-mysql.git : https://github.com/dilagurung/nodejs-ejs-mysql.git 安装软件包: npm install 编辑数据库配置: config/database.js 创建数据库模式: node scripts/create_database.js 启动: node server.js 在浏览器中访问: http://localhost:8080 执照:1
【文件预览】:
nodejs-ejs-mysql-master
----.gitignore(3KB)
----README.md(662B)
----views()
--------profile.ejs(951B)
--------index.ejs(846B)
--------signup.ejs(1KB)
--------login.ejs(2KB)
----server.js(2KB)
----app()
--------routes.js(3KB)
----.gitattributes(483B)
----package.json(440B)
----scripts()
--------create_database.js(656B)
----config()
--------database.js(232B)
--------passport.js(5KB)

网友评论