bms-react

1.0.1 • Public • Published

BMS-React

Introduce

A common CMS based on react,antd and nodejs. The back-end datebase is mysql.The system has the auto-generate-code tool, you can generate controller and datebase mapper file automaticly.. If you has any suggestions, please give a issue to me. Thank you .

Interface

login page

login

index page

index

Project Structure

Structure

Install

1 If you are in china , I suggest you set npm registry to TaoBao.com , npm set registry https://registry.npm.taobao.org

2 Run npm i in the shell to install dependances.

3 Import the sql file in the project root path.

4 Run npm run dev and open localhost:8886

How to add a coomponent in a project?

As you can see, there is no content of the corresponding menus, but how can I add content to the menus ? Please follow the following steps:

  • All the menus are sotred in the mysql database. For example, if the menu's url is "/index/SysOrgControl/skiporganizPage".

  • Make a dir called SysOrgControl in index dir. Like the following pic.

  • Make a tsx file in the SysOrgControl that I just established.

  • Write something in the SysOrgControl.tsx , then you can see the things you just wrote!

The final result is like this :

The files I just made: files The final result: files

Finally

The project is based on MIT , and just learning for the beginners ! Please git a issue to me if you find any bug!

Package Sidebar

Install

npm i bms-react

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • wangyi7099