Configuration
Basic configuration
Now That Adomin is installed and ready, if not, start here, let’s add some basic configuration:
Add the following code, don’t forget to import User
(or any model that you want)
const USER_VIEW = createModelViewConfig(() => User, { label: "Adominer", columns: { email: { type: "string", isEmail: true, label: "Super email" }, password: { type: "string", isPassword: true, label: "Strong password" }, },});
export const ADOMIN_CONFIG: AdominConfig = { title: "Your backoffice title", views: [USER_VIEW],};
This will add a page in your adomin frontend.
If you did not setup adomin frontend yet, go here
Real world configuration
In a real application, your Back-office might have many pages with complex configurations, to learn what you can do with Adomin see the reference pages for models views