Coder Social home page Coder Social logo

jx3-bdc's Introduction

JX3-BDC

JX3 Todo background data center/controller.

QuickStart

see egg docs for more detail.

Development

$ npm i
$ npm run dev
$ open http://localhost:3344/

Deploy

$ npm start
$ npm stop

npm scripts

  • Use npm run lint to check code style.
  • Use npm test to run unit test.
  • Use npm run autod to auto detect dependencies upgrade, see autod for more detail.

jx3-bdc's People

Contributors

yangd1 avatar

Watchers

 avatar  avatar

jx3-bdc's Issues

有关用户登陆验证

JWT方案延展:
https://segmentfault.com/q/1010000010043871
有效方案理解:

  1. 生成一个带有版本号(时间戳或者自增Integer)
  2. 将生成的JWT存入Redis存储(存入的可以是用户信息+版本号信息,也可以是直接存储JWT)
  3. 返回状态(Redis拥有有效信息就可以)
    https://github.com/bigmeow/JWT

如何持续检测用户的登陆状态:
设置过期时间,过期时间可能是Redis的存储有效期或者是别的信息
每当发起请求的时候验证有效性,并且决定(还剩半小时过期)延续(重置了过期时间,从生成时间开始)有效,并且更新client端的JWT

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.