Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 546 Bytes

README.md

File metadata and controls

20 lines (12 loc) · 546 Bytes

eggjs-userrole-demo use egg-userrole plugin

Usage

Run:

  npm install
  npm run dev

Then open http://localhost:7001

You will see empty userId and userName

Try click the link login, after fake login you can go to /admin.html page to check if your role system is working correctly or not.

Enable Redis Session Storage:

 Uncomment the code in /config/config.default.js and /config/plugin.js, and change the redis connect config to your own redis server.