To avoid building administration app from scratch each time you start a new project,
we created the
webiny-admin package, which does exactly that - an administration app skeleton.
It provides a pretty standard admin app layout: header, sidebar menu, user account menu, etc. Everything is based on plugins so it is very easy to replace stuff and add your own new functionality.
The image below demonstrates a blank app with a dummy view wrapped in an
As soon as you wrap your view inside this component, you get yourself a default admin layout:
All this is built using plugins, so adding menu items, routes and views is simply a matter of registering new plugins.
The admin layout does not provide any security features by itself. To add a login page
and user account data you need to register plugins from the
This login view can be replaced entirely, since you are in control of what is rendered when user is not authenticated, but out of the box you get this:
Security package also provides a few modules to handle users, roles and user groups:
Once security is enabled, the logged in user appears in the top right menu and can edit his account data or sign out:
To see the full admin app setup, please visit the demo-admin app on our Github.
The easiest way to get up and running, and have everything set up for you, is to use our webiny-cli package to create a blank Webiny project that is ready to develop your custom stuff straight away.