A modern dashboard for OpenStack - UI
Go to file
Jingwei.Zhang 781d751722 docs: Add Chinese documents
1. Add Chinese development documents
2. Add Chinese test document

Change-Id: I29cd91f47069c9e64928800094282d4cbc977920
2021-06-25 10:53:34 +08:00
config feat: Add initial code of skyline-console 2021-06-01 23:29:30 +08:00
docs/zh docs: Add Chinese documents 2021-06-25 10:53:34 +08:00
skyline_console feat: Add initial code of skyline-console 2021-06-01 23:29:30 +08:00
src fix: Fix folder name 2021-06-24 11:49:24 +08:00
test feat: Add initial code of skyline-console 2021-06-01 23:29:30 +08:00
tools/git_config feat: Add initial code of skyline-console 2021-06-01 23:29:30 +08:00
.babelrc feat: Add initial code of skyline-console 2021-06-01 23:29:30 +08:00
.dockerignore feat: Add initial code of skyline-console 2021-06-01 23:29:30 +08:00
.eslintignore feat: Add initial code of skyline-console 2021-06-01 23:29:30 +08:00
.eslintrc feat: Add initial code of skyline-console 2021-06-01 23:29:30 +08:00
.gitignore docs: Add Chinese documents 2021-06-25 10:53:34 +08:00
.gitreview Added .gitreview 2021-05-08 17:14:35 +00:00
.prettierignore docs: Add Chinese documents 2021-06-25 10:53:34 +08:00
.prettierrc feat: Add initial code of skyline-console 2021-06-01 23:29:30 +08:00
.zuul.yaml Add Zuul support for new repository 2021-05-10 12:48:50 +02:00
cypress.json feat: Add initial code of skyline-console 2021-06-01 23:29:30 +08:00
Gruntfile.js feat: Add initial code of skyline-console 2021-06-01 23:29:30 +08:00
jest.config.js feat: Add initial code of skyline-console 2021-06-01 23:29:30 +08:00
jsconfig.json feat: Add initial code of skyline-console 2021-06-01 23:29:30 +08:00
LICENSE feat: Add initial code of skyline-console 2021-06-01 23:29:30 +08:00
Makefile feat: Add initial code of skyline-console 2021-06-01 23:29:30 +08:00
package.json feat: Add initial code of skyline-console 2021-06-01 23:29:30 +08:00
poetry.lock feat: Add initial code of skyline-console 2021-06-01 23:29:30 +08:00
pyproject.toml feat: Add initial code of skyline-console 2021-06-01 23:29:30 +08:00
README.md Fix README 2021-06-17 14:21:51 +08:00
yarn.lock feat: Add initial code of skyline-console 2021-06-01 23:29:30 +08:00

使用说明

简体中文 | English

环境依赖

  • node: lts/erbium (v12.*)
  • yarn: 1.22.4 +

本地环境搭建

以 CentOS 为例

  • 安装 nvm (nodejs 版本管理工具)

    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
    
  • 安装 nodejs

    NODE_VERSION=erbium
    nvm install --lts=$NODE_VERSION
    nvm alias default lts/$NODE_VERSION
    nvm use default
    
  • 验证 nodejs 和 npm 版本

    node -v
    # v12.*.*
    npm -v
    # 6.*.*
    
  • 安装 yarn

    npm install -g yarn
    
  • 安装项目依赖

    在项目根目录下,package.json同级。

    yarn install
    

    等待安装完成即可。

开发使用方法

在项目根目录下,package.json同级。

  • yarn run mock: 使用rap2工具 mock 接口
  • yarn run dev: 使用实际接口,需要将webpack.dev.js文件第 47 行的 "http://pre.xxx.com" 修改为实际地址
  • yarn run build: 构建打包,可将生成的 dist 目录的内容交给后端