The project is an overall front-end project that combines Choerodon Boot and Choerodon iam. The infrastructure Choerodon-front-iam module in the Choerodon front can be added selectively. The construction project can be used on macOS
, Windows
or Linux
. Teams can be developed in modules, greatly speeding up development.
webpack
for construction.gulp
to manage related processes.yeoman
to automatically generate related modules for the project.React
and Mobx
are used as the main development technology.The basic module has 3 levels, which have the following functions:
The development is modeled on the i'm project structure (it is recommended that the directory structure is automatically generated by the yo command, saving the time for automatic directory creation). The source file directory is in iam/src/app/iam
. The main directory structure is as follows:
├── src
│ └── app
│ └── iam
│ ├── assets
│ │ ├── css
│ │ └── images
│ │── common
│ │ ├── json-format
│ │ └── util.js
│ ├── components
│ │ ├── loadingBar
│ │ └── memberLabel
│ ├── config
│ │ ├── Menu.yml
│ │ └── language
│ │ └── dashboard
│ ├── containers
│ │ ├── global
│ │ ├── organization
│ │ ├── project
│ │ ├── user
│ │ └── IAMIndex.js
│ ├── locale
│ │ ├── en_US.js
│ │ └── zh_CN.js
│ ├── stores
│ │ ├── global
│ │ ├── organization
│ │ ├── project
│ │ └── user
│ └── test
│ └── util
├── .eslintrc.json
├── .gitignore
├── .stylelintrc.json
├── package.json
└── tsconfig.json
css
stores module of Assets store general stylesheet, the images storage module store image resourcescontainers
stores the front pagestores
stores the data needed for the front pagecommon
stores public configuration filescomponents
stores public componentslocale
stores module multilingual filesconfig
stores Menu.yml
configuration file (including code and icon of menu, jump into Route, menu permissions) and language in Chinese and English yml (zh.yml
, en.yml
)test
stores test files$ git clone https://github.com/choerodon/choerodon-front-iam.git
$ cd ./choerodon-front-iam/iam
$ npm install
$ npm start
Once running, open http://localhost:9090
If you find any shortcomings or bugs, please describe them in the issue.
Pull requests are welcome! Follow to know for more information on how to contribute.