Instructions ============ `简体中文 <./README/README-zh_CN.rst>`__ \| English \| `한국어 <./README/README-ko_KR.rst>`__ **Table of contents** - `Instructions <#instructions>`__ - `Resources <#resources>`__ - `Prerequisites <#prerequisites>`__ - `Local Environment <#local-environment>`__ - `Usage <#usage>`__ - `Docs <#docs>`__ - `How to develop <#how-to-develop>`__ - `How to test <#how-to-test>`__ Resources --------- - `Wiki `__ - `Bug Tracker `__ Prerequisites ------------- - ``node``: lts/erbium (v12.*) - ``yarn``: 1.22.4 + Local Environment ----------------- Take CentOS as an example - Install nvm ( version control system for nodejs ) .. code:: shell wget -P /root/ --tries=10 --retry-connrefused --waitretry=60 --no-dns-cache --no-cache https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh bash /root/install.sh . /root/.nvm/nvm.sh - Install nodejs .. code:: shell NODE_VERSION=erbium nvm install --lts=$NODE_VERSION nvm alias default lts/$NODE_VERSION nvm use default - Verify nodejs and npm versions .. code:: shell node -v # v12.*.* npm -v # 6.*.* - Install yarn .. code:: shell npm install -g yarn - Install the project dependency under the root directory, with ``package.json`` in the same place. .. code:: shell yarn install After those steps, please just wait until the installation is complete. Usage ----- Under the root directory, with ``package.json`` in the same place. - ``yarn run mock``: Use the mock interface of `rap2 `__ - ``yarn run dev``: To use the actual interface, you can copy ``config/config.yaml`` to ``config/local_config.yaml`` , and replace the ``server`` value with the correct address. - ``yarn run build``: Build packages and then you can hand over the contents of the generated *dist* directory to the back end. Docs ---- How to develop ~~~~~~~~~~~~~~ - `Preparation before development `__ - `Directory structure `__ - `Develop a new resource page `__ - `BaseList introduction `__ - `BaseTabList introduction `__ - `BaseDetail introduction `__ - `BaseDetailInfo introduction `__ - `BaseStore introduction `__ - `FormAction introduction `__ - `ModalAction introduction `__ - `ConfirmAction introduction `__ - `StepAction introduction `__ - `FormItem introduction `__ - `Action introduction `__ - `Menu introduction `__ - `Route introduction `__ - `I18n introduction `__ How to test ~~~~~~~~~~~ - `Two kinds of tests `__ - `Directory structure `__ - `How to edit e2e case `__ - `E2E - Form operation `__ - `E2E - Table operation `__ - `E2E - Detail operation `__ - `E2E - Resource operation `__