1.3.12 • Published 2 years ago

@bunred/bunadmin v1.3.12

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

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 ...

❤️🎉

1.3.12

2 years ago

1.2.0

2 years ago

1.2.5

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.3.11

2 years ago

1.3.7-alpha-1

2 years ago

1.3.9

2 years ago

1.1.3-beta.9

2 years ago

1.3.7

2 years ago

1.3.6

2 years ago

1.3.5

2 years ago

1.3.4

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.1.3-beta.10

2 years ago

1.1.3-beta.11

2 years ago

1.3.0

2 years ago

1.1.3-beta.8

2 years ago

1.1.3-beta.7

2 years ago

1.1.3-beta.6

3 years ago

1.1.3-beta.5

3 years ago

1.1.3-beta.4

3 years ago

1.1.3-beta.3

3 years ago

1.1.3-beta.2

3 years ago

1.1.3-beta.1.1

3 years ago

1.1.3-beta.1

3 years ago

1.1.3-beta.0

3 years ago

1.1.1-beta.2

3 years ago

1.1.1-beta.1

3 years ago

1.1.1-beta.0.6

4 years ago

1.1.1-beta.0.5

4 years ago

1.1.1-beta.0.3

4 years ago

1.1.1-beta.0.1

4 years ago

1.1.1-beta.0.2

4 years ago

1.1.1-beta.0

4 years ago

1.1.0-beta.10.1

4 years ago

1.1.0-beta.1.2.1

4 years ago

1.1.0-beta.1.2

4 years ago

1.1.0-beta.1.1

4 years ago

1.1.0-beta.1

4 years ago

1.1.0-alpha.12

4 years ago

1.1.0-alpha.11

4 years ago

1.1.0-alpha.10

4 years ago

1.1.0-alpha.9

4 years ago

1.1.0-alpha.8

4 years ago

1.1.0-alpha.6

4 years ago

1.1.0-alpha.5

4 years ago

1.1.0-alpha.4

4 years ago

1.1.0-alpha.3

4 years ago

1.1.0-alpha.2

4 years ago

1.1.0-alpha.1

4 years ago