AdminBro v1.0.0 released — admin panel for Node.js apps with React on the frontend.

It was a busy week in Software Brothers, but we finally released a new version of AdminBro — an autogenerated admin panel for Node.js apps that uses React framework to display a beautiful UI.

To put it simply, with AdminBro you can build an admin panel within minutes instead of days.

So what is in the latest version?

Access control

Now you can adjust the access to each action in every resource by simply setting isAccesible property in the options:

// options passed to AdminBro
...
actions: {
// only superuser can edit given resource
edit: {
isAccessible: data => data.currentAdmin.role === ‘superuser’
},
// everyone can see resource records
show: { isAccessible: true },
// no one can delete records
delete: { isAccessible: false },
}
...

For more information about isAccessible method — check out the API documentation: https://softwarebrothers.github.io/admin-bro-dev/BaseAction.html#.isAccessible

Action hooks

In the before hook, you can adjust a request passed by your backend before it gets to the AdminBro API. It means that you can prefill custom fields or remove unnecessary data.

Along with the before hook comes an after hook — in which you can adjust the default action response. It may be worth using it when you want to add more data to the response which requires a more advanced population of records.

Check out the API here:

First 1.x.y release

What’s next?

We are eager to make AdminBro the best admin panel out there, so the next release will come sooner rather than later.

If you like AdminBro — star the repo and check out the rest of our open-source projects.

Co-founder and CTO at SoftwareBrothers, giving keynotes, providing open source solutions on GitHub and running a jscasts.tv youtube channel.

Co-founder and CTO at SoftwareBrothers, giving keynotes, providing open source solutions on GitHub and running a jscasts.tv youtube channel.