A demo which includes frontend and backend based on json-web-token.
- Login and register based on JWT authorization of user
- Separate frontend and backend based on RESTful API
- Permission assignment
Add the field of header named authorization to store JWT token after login of frontend.
Backend receives the JWT token and this API needs some permissions.
A model named "Role" which is designed to store different identity of user to distinguish different authorities.
You can change some configs at "config" dir. The premise is that you have already install the database environment.
Any suggestiton and criticism generally be made welcome.