Admin bro is a node.js/react plugin that auto generates admin pages based on configuration
Questions tagged [admin-bro]
34 questions
6
votes
4 answers
MongooseServerSelectionError: connect ECONNREFUSED 127.0.0.1:27017
I used mongoose to connect my database to my app.
I got this unexpected error.
My app.js look like this
const express = require('express');
const mongoose = require('mongoose');
const authRoutes = require('./routes/authRoutes');
const cookieParser =…

Shizu
- 124
- 1
- 2
- 7
5
votes
1 answer
How to use @admin-bro/nestjs with @admin-bro/typeorm and postgres in a right way?
The admin-bro-nestjs repository contains a comprehensive example with example with mongoose. But I need use it with typeorm and postgres.
I tried to adapt this example for typeorm:
// main.ts
import AdminBro from 'admin-bro';
import { Database,…

muturgan
- 473
- 1
- 8
- 19
4
votes
2 answers
Error: Cannot find module 'tslib' on adminbro tutorial
I'm trying to build a nodejs app using admin bro.
They have provided a tutorial for Role Based Access example Here
I run these to create a new directory for the app:
mkdir my-admin-app
cd my-admin-app
yarn init -y
To install dependencies, I…

chok68
- 875
- 9
- 10
3
votes
1 answer
Adding custom CSS file into AdminBro component
I have a custom page in Admin Bro with the name of gallery. Now in their I want to import some css that I wrote. I tried this:
import './gallery.css';
This does not seem to work for some reason. Is their any way I can add my custom css into my…

Shobhit Tewari
- 535
- 5
- 20
1
vote
0 answers
How to send custom props to AdminJS.bundle()
Feature request
provide download feature where if i a filter is applied the triggered download should download filtered data in an excel sheet.
Their is an api when given tableName and filter columns it fetches that data returns.
But the issue…

Mohammed Shahed
- 840
- 2
- 15
1
vote
0 answers
Deploying Nodejs app with Adminjs dashboard on google cloud read only file system error
I have been trying to upload my Nodejs app to google cloud app engine and I am using Adminjs inside. In my root folder, I have .adminjs folder and .entry.js file nested inside. Google console logs explorer gives [Error: EROFS: read-only file system,…

Josip Marić
- 227
- 4
- 21
1
vote
0 answers
How to integrate adminjs with pino-http?
I would like to log every request made into adminjs along with the account Id or admin user Id of the person who executed the request.
How can I hook into adminjs and log HTTP requests made by pino-http
This is what my authenticated router looks…

PirateApp
- 5,433
- 4
- 57
- 90
1
vote
0 answers
adminjs - customize resource component does not render
I am having trouble to override the rendering of customized resource. The custom component was working before using adminjs 6.0.0
I am getting error
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for…

ImTheRealOne
- 57
- 1
- 6
1
vote
1 answer
adminjs - resource custom component for edit does not update values
I am having some trouble using customize component for one of my resources fields. For my servicesubcategory, I have a field call parent_service_id, which has a belongs to relationship with another model servicecategory. When I use my customize…

ImTheRealOne
- 57
- 1
- 6
1
vote
1 answer
Adminbro/Adminjs - Sequelize - SequelizeDatabaseError: Conversion failed when converting date and/or time from character string
I am using admin-bro / adminjs to create a CRUD admin portal but some of the fields are date fields and when I tried to Edit an item that already exists and clicked in save Sequelize gives me this error:
SequelizeDatabaseError: Conversion failed…

lumayara
- 402
- 6
- 16
1
vote
1 answer
How do Allow only Admins to have access to the Admin page in Nodejs `AdminBro`
How do Allow only Admins to have access to the Admin page in AdminBro? Nodejs
All that I want is for only Admins to have access to the adminBro page, is there any specific method to get this done?
I did this in my app.js file but it's not…

Chukwuma Kingsley
- 497
- 8
- 20
1
vote
2 answers
Error in getting referenced objects in admin-bro Nodejs (There are no resources with given id)
So the error I am getting is There are no resources with given id: "workshop.timelines"\nThis is the list of all registered resources you can use.
This is the resource I am trying to visualize in adminbro
const LearnerSchema = new mongoose.Schema(
…

Manish
- 21
- 1
- 9
1
vote
0 answers
Nodejs AdminBro show/edit JSONB field
I am trying to display and enable edit for one of my models that has a JSONB datatype.
instructor model
const Instructor = sequelize.define('Instructor', {
id: {
type: Sequelize.INTEGER,
autoIncrement: true,
primaryKey:…

Cyzanfar
- 6,997
- 9
- 43
- 81
1
vote
1 answer
Change text on login page in admin bro
The login page in admin-bro says 'Welcome!'. I need to change it to something else. is it possible in AdminBro??
PS: I'm using version AdminBro v1.6.6.
PPS: I've already tried this and the corresponding links. It doesn't work for me. Is it because…

Ritik Saxena
- 694
- 1
- 11
- 23
1
vote
1 answer
Login using existing api and controller in admin bro
My project(nodejs backend) requires basic CRUD functionalities for few items: continent, country etc.
I was working on creating an admin dashboard and I found admin-bro plugin for creating the dashboard.
But since this will be in live server I need…
user14709104