Express-MongoDB-Authentication:使用Express和MongoDB的简单身份验证应用程序

时间:2021-02-03 13:29:30
【文件属性】:
文件名称:Express-MongoDB-Authentication:使用Express和MongoDB的简单身份验证应用程序
文件大小:600KB
文件格式:ZIP
更新时间:2021-02-03 13:29:30
mongodb authentication mongoose expressjs MongooseJavaScript 使用Express和MongoDB的简单身份验证应用 1.激活您的MongoDB服务器,然后在MongoDB上创建数据库,数据库用户和集合: $ use signin $ db.createUser({user: ' lintang ' , pwd: ' 1234 ' , roles: [ ' readWrite ' , ' dbAdmin ' ]}) $ db.createCollection( ' users ' ) 2.从我的仓库中克隆项目: $ git clone https://github.com/LintangWisesa/Express-MongoDB-Authentication.git 3.转到存储库,然后安装所需的所有软件包: $ cd Express-MongoDB-Authentication $ npm install 4.在route / router.js上编辑Express应用程序的路由! 通过运行app.js确保您的应用程序没有错误。 默认情况下,服务器将在localhost:3210上运行! $ node ap
【文件预览】:
Express-MongoDB-Authentication-master
----.gitignore(13B)
----app.js(1KB)
----package.json(535B)
----picture()
--------auth2.png(86KB)
--------auth3.png(131KB)
--------auth1.png(84KB)
--------auth5.png(202KB)
--------auth4.png(89KB)
----package-lock.json(124KB)
----models()
--------user.js(1KB)
----views()
--------index.html(1KB)
----README.md(2KB)
----routes()
--------router.js(2KB)

网友评论