miaojiuchen / eggjs-userrole-demo

eggjs-userrole-demo use egg-userrole plugin, support redis session

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

eggjs-userrole-demo use egg-userrole plugin, support redis session


Languages

Language:JavaScript 100.0%