Coder Social home page Coder Social logo

node.js-1-register-login's Introduction

介绍

用 node.js 写的注册/登录/查看用户/删除某一用户的简单接口练习

依赖

  • express5 因为express4对于await的处理可能会有点问题,所以选择下载express5
  • mongoose 操纵MongoDB
  • bcriptjs 对明文密码加密
  • jsonwebtoken 生成token

目录文件

  • mymongodb.js MongoDB部分
  • myserver.js 处理请求部分
  • mytest.http vscode REST Client的http文件,可对服务器发起请求,不需要的话可忽略

完成功能

  • 注册
  • 登录
  • 查看总的用户
  • 查看单一用户的数据
  • 删除单一用户

node.js-1-register-login's People

Contributors

yuanfajun avatar yuanfajun0912 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.