How to use AccessControl for RBAC and ABAC in Node.js

Use AccessControl for RBAC and ABAC for authorization in a server-side application and authorize routes and UI elements in a client-side application.