🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

@bunred/bunadmin

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bunred/bunadmin

A simple graphql admin dashboard. Easy to expand with the flexible plugin. Graphql first, also supports api. Based on React, Material-UI, Realtime RxDB, Formik, I18N.

Source
npmnpm
Version
1.1.0-beta.1
Version published
Maintainers
1
Created
Source

BunAdmin

A simple graphql admin dashboard(Front-End Only). Easy to expand with the flexible plugin. Graphql first, also supports api. Based on React, Next.js, Material-UI, Realtime RxDB, Formik, I18N. Free and Open Source for personal and commercial purposes.

Feature

  • âś…   Package / Use as a node module *
  • âś…   Plugins / One-click Update Plugins *
  • ✅️   Multi-user *
  • ✅️   Multi-language
  • âś…   Data migration *
  • âś…   Log / message *
  • âś…   Common Components
  • âś…   MDX Documentation
  • âś…   Dockerfile & Deploy Shell

Quick Start

yarn create react-app my-admin --template bunadmin
cd my-admin
yarn update-plugins && yarn dev

Open http://localhost:1911/

Example Code

Screenshot

Sign in Sign in

Data Migration Data Migration

More screenshots

Plugins

Functions need to be implemented by plugins, you need to build and update plugin-info

[
  {
    "enable": true,
    "plugin-id": "bunadmin-plugin-auth",
    "plugin-folder": "buncms-user"
  }
]

Required

User Auth: api example

Examples

Strapi User: api example

File Explore: graphql example

Data Source Strapi: data source api example

Strapi Blog: api example

Plugin structure

  • /plugins/[team]-[group]
    • /[name]
      • index.tsx
      • column.tsx
      • types.ts
    • /[name]
      • index.tsx
      • column.tsx
      • types.ts
    • /utils
      • i18n/
        • en.ts
        • zh.ts
      • initData.ts
    • package.json

Example:

  • /plugins/bunadmin-blog
    • /post
      • index.tsx
      • column.tsx
    • /category
      • index.tsx
    • /utils
      • initData.ts
    • package.json

Develop

intData

Used to generate schema and menus data. example code

Column

Column define how your data looks. example code | read more

Theme

There is only one theme for now which refers to ngx-admin.

Deployment

cp e.g./deploy-*.sh deploy-my-admin.sh
./deploy.sh

AliCloud:

Append the following content to deploy.sh

docker tag ${container} registry.cn-shenzhen.aliyuncs.com/bunlu/${container}:1.0.1
docker push registry.cn-shenzhen.aliyuncs.com/bunlu/${container}:1.0.1

Heroku: Checkout the branch delpoy_heroku_example Replace the following content to deploy.sh

heroku container:push web
heroku container:release web

Demo

Online Demo

Documentation

Username / password: bunadmin_test

See more on bunadmin-example-strapi

Backup private files

Usually you need to manually backup the following files

  • env-prod.env
  • deploy-my-admin.sh

Create your own document

Use mdx to combine your own components.

Add these two plugins to plugin-info.json doc file

Refer to bunadmin-plugin-doc to make your document

Thanks

material-ui material-table next.js rxdb formik ngx-admin ant-design-pro react-admin ...

❤️🎉

Keywords

admin

FAQs

Package last updated on 25 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts