Skip to content

Instantly share code, notes, and snippets.

Created Sep 5, 2020
What would you like to do?
const AdminBro = require('admin-bro')
const AdminBroExpress = require('@admin-bro/express')
const express = require('express')
const app = express()
const adminBro = new AdminBro({
databases: [],
rootPath: '/admin',
const router = AdminBroExpress.buildRouter(adminBro)
app.use(adminBro.options.rootPath, router)
app.listen(8080, () => console.log('AdminBro is under localhost:8080/admin'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment