complete-user-auth:针对任何以Express.js和MongoDB为后端的应用程序的完整且易于集成的User-Authentication REST API

时间:2024-02-24 07:25:47
【文件属性】:

文件名称:complete-user-auth:针对任何以Express.js和MongoDB为后端的应用程序的完整且易于集成的User-Authentication REST API

文件大小:30KB

文件格式:ZIP

更新时间:2024-02-24 07:25:47

nodejs express mongodb mongoose user-authentication

完整的用户身份验证 完整且易于集成的User-Authentication REST API,适用于任何具有Express.js,MongoDB作为后端和DB的应用程序 如何使用 1. Clone or download the repository 2. Open project in your favourite IDE ( I assume VS Code ;) ) 3. Run npm install in cloned directory 4. Start MongoDB service in your machine 5. Change the connection string of DB in db/db.js 5. Start the app by running npm run dev and open POSTMAN. 6. Start with POST /register and rest is all yours ;) 产品特点 1. JWT authentication 2. Simple Mongoose model with one instance


【文件预览】:
complete-user-auth-master
----utils()
--------auth.js(900B)
--------validation.js(790B)
--------hash.js(289B)
----db()
--------db.js(470B)
----models()
--------userModel.js(900B)
----app.js(1KB)
----README.md(2KB)
----.gitignore(19B)
----bin()
--------www(2KB)
----routes()
--------users.js(6KB)
----package-lock.json(75KB)
----package.json(611B)

网友评论